delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/10/10:56:27

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
To: cygwin AT cygwin DOT com
From: Eric Hanchrow <offby1 AT blarg DOT net>
Subject: Re: bash script doesn't wait for commands to complete -- me too
Date: Fri, 10 Sep 2004 07:56:13 -0700
Lines: 27
Message-ID: <87eklafa0i.fsf@offby1.atm01.sea.blarg.net>
References: <753F1E41ACB9D51190C00090277218D80171EE2B AT WWMESSD206>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: offby1.atm01.sea.blarg.net
User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)
X-IsSubscribed: yes

>>>>> "Dolton" == Dolton Tony AB <Tony DOT Dolton AT uk DOT fujitsu DOT com> writes:
    >> 
    >> So, if you are starting more than around 62 subprocesses then
    >> things probably won't work right.
    >> 
    >> cgf

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

I've seen similar behavior in my .bash_profile -- one of the last
things it does is invoke "keychain", which almost always winds up
running in the background.  It's true that my .bash_profile starts a
large number of processes, but I don't start any of them in the
background intentionally -- that is, none of the commands in
.bash_profile nor .bashrc end with a single `&'.

I've also occasionally seen commands that I've started by hand at the
command line execute as if they were in the background.  I've never
been able to come up with a simple reliable recipe to reproduce the
problem, though.

-- 
If you can't change your underwear, can you be sure you have any?


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