delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/27/16:38:38

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <37EFD567.1F56@gsao.med.ge.com>
Date: Mon, 27 Sep 1999 15:36:55 -0500
From: "Peter S. Schiltz 4-6248" <schiltz AT gsao DOT med DOT ge DOT com>
X-Mailer: Mozilla 3.0 (X11; I; IRIX 6.3 IP32)
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
CC: schiltz AT gsao DOT med DOT ge DOT com, karmar AT gsao DOT med DOT ge DOT com, kealy AT gsao DOT med DOT ge DOT com,
wamboldt AT gsao DOT med DOT ge DOT com
Subject: fork/exec problem in bash?

We're using Cygwin B19 bash on NT4.0. We're seeing some surprising
behavoir from a bash script that runs make. The script does something
like this:

	make Makefiles
	make includes
	make libraries
	make programs

All four passes (Makefiles, includes, libraries, programs)
are running at the same time. If I may describe this in Unix
terms, it's as if bash does the first fork and exec, then 
does a wait (for the "make Makefiles" to finish), but the
wait returns immediately, and the script goes on to the next pass.

This behavior isn't specific to make; the same thing happens when
the script calls another script. In fact, we have several scripts
that cooperate to run our builds, and they all show this same
problem when they call each other.

We can't reproduce this behavior reliably. It happens a few
times, then goes away. Rebooting seems to help, but only if you
wait a few minutes after rebooting before running the script.

Has anyone seen this before? Any ideas or advice or hints?

Thanks for any help you guys can provide.

Pete

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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