X-Spam-Check-By: sourceware.org Date: Wed, 21 Dec 2005 15:01:17 -0500 From: David Arnstein To: cygwin AT cygwin DOT com Subject: Re: Please try a snapshot - final push for 1.5.19 Message-ID: <20051221200117.GA5691@panix.com> Reply-To: arnstein AT pobox DOT com References: <20051221162249 DOT GA9890 AT trixie DOT casa DOT cgf DOT cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.10i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Wed, Dec 21, 2005 at 12:17:09PM -0500, Igor Pechtchanski wrote: > I've been having problems with "fork: resource unavailable" on my machine > with the 10/03 snapshot. The problem is only reproducible after Cygwin > has been running for a while, under a heavy load. I'll try to see if it > appears under the 12/20 snapshot, but there's no guarantee I'll be able to > reproduce it in time for the release. I know this isn't much of a bug > report, but this is just a heads-up. I have been plagued by this problem for monthes now. I don't have a solution, but here is a bash shell script that will reproduce the problem. It is checking every file in its argument list. It is most likely to cause the problem when presented with a long argument list. I like to exercise it by launching it from C:\Windows as undupe.sh * Here is undupe.sh: #!/bin/bash if [ $# -eq 0 ] then echo "Usage: undupe.sh files..." exit 1 fi declare -i first declare -i n_dup ((n_dup = 0)) echo "Will process $# files..." while [ $# -gt 1 ] do left=$1 if [ -f "$left" ] then ((first = 1)) for right in "$@" do if [ $first -eq 1 ] then ((first = 0)) else if [ -f "$right" ] then cmp -s "$left" "$right" if [ $? -eq 0 ] then echo "$right" is the same as "$left" ((n_dup = n_dup + 1)) fi fi fi done fi shift done echo "Deleted $n_dup files" -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/