delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/06/23:25:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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: <3D509328.3040302@gmx.net>
Date: Wed, 07 Aug 2002 11:25:28 +0800
From: Nils <internationils AT gmx DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Manfred Spraul <manfred AT colorfullife DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: [PATCH] cygwin+bash: bash reorders script output bug identified/fixed
References: <3D4F758C DOT 4010109 AT colorfullife DOT com>

Manfred Spraul wrote:
...
> Summary:
> * It's a bash bug, not a cygwin bug.
> * defining RECYCLES_PIDS in execute_cmd.c solves the problem.
> * RECYCLES_PID is intended for LynxOs, which recycles pids
>       quickly according to a comment in execute_cmd.c
> * All OS are potentially affected, bash basically assumes
>       that 2 pid values are never identical.
> 
> It seems that there are 2 possible solutions:
> A) enable RECYCLES_PID in bash.
>       * I'd propose that, minimal patch attached.
> B) work around the bash bug in cygwin.
>       fork.cc already contains a special function that prevents 2
>           consecutive fork() calls from reusing the same pid:
>           slow_pid_reuse().

This may have been what I was running into as well.  See 
http://cygwin.com/ml/cygwin/2002-07/msg01894.html

When doing the same compiles with in a window with tcsh running (even if 
bash gets invoked later on) the process numbers seem to increase much 
more slowly.  If you do a large compile using bash as your shell, do you 
see process numbers creeping upward (in task manager) gradually as well?

Thanks,
Nils.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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