delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/10/09:39:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <753F1E41ACB9D51190C00090277218D80171EE2B@WWMESSD206>
From: Dolton Tony AB <Tony DOT Dolton AT uk DOT fujitsu DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: bash script doesn't wait for commands to complete
Date: Fri, 10 Sep 2004 14:40:19 +0100
MIME-Version: 1.0

(Sorry if this doesn't appear in the right place - I've been unable to
subscribe to the list and had to bodge a reply.)

>>I have a problem whereby a bash script doesn't wait for foreground
commands
>>to complete. The script in question kicks off a number of background
>>processes, and processes their results as they complete.
>>
>>A simplified version which exhibits the problem is attached as scr.sh. The
>>number of background processes and the number of iterations of the
>>foreground commands are supplied as parameters, (e.g. "./scr.sh 50 100").
>>These values, as well as the length of the sleep may need adjustment
>>depending on a machine's performance, to make sure that the sleeps
terminate
>>squarely within the foreground loop.

>Cygwin currently has a hard limit of around 62 subprocesses or so before
>things might get confusing.  There is a 63 handle windows limitation
>which would take some effort to work around.
>
>So, if you are starting more than around 62 subprocesses then things
probably
>won't work right.
>
>cgf

Thanks for that. However, although the problem occurs most frequently with
more subprocesses, I occasionally see it with as few as 2 subprocesses, so I
don't think the limit is coming into play. I haven't tried more than 50
subprocesses, as I knew there was a hard limit
	Tony

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019