public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* fork/exec problem in bash?
@ 1999-09-27 13:38 Peter S. Schiltz 4-6248
  1999-09-30 23:42 ` Peter S. Schiltz 4-6248
  0 siblings, 1 reply; 2+ messages in thread
From: Peter S. Schiltz 4-6248 @ 1999-09-27 13:38 UTC (permalink / raw)
  To: cygwin; +Cc: schiltz, karmar, kealy, wamboldt

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@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* fork/exec problem in bash?
  1999-09-27 13:38 fork/exec problem in bash? Peter S. Schiltz 4-6248
@ 1999-09-30 23:42 ` Peter S. Schiltz 4-6248
  0 siblings, 0 replies; 2+ messages in thread
From: Peter S. Schiltz 4-6248 @ 1999-09-30 23:42 UTC (permalink / raw)
  To: cygwin; +Cc: schiltz, karmar, kealy, wamboldt

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@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-09-30 23:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-27 13:38 fork/exec problem in bash? Peter S. Schiltz 4-6248
1999-09-30 23:42 ` Peter S. Schiltz 4-6248

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).