This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: spawn hangs for non-Cygwin programs
On Wed, Feb 28, 2001 at 06:47:32PM -0500, Christopher Faylor wrote:
>On Wed, Feb 28, 2001 at 01:24:10PM -0800, Bob Wilson wrote:
>>I have a Cygwin program that contains the following call to invoke a
>>child process:
>>
>> pid = spawnvp((int)_P_NOWAIT, argv[0], argv);
>>
>>Sometime between Cygwin 1.1.4 and 1.1.8 it seems to have stopped
>>working. If the child is another Cygwin program, then everything is
>>fine. If the child was compiled with -mno-cygwin, however, the spawnvp
>>call never returns (as if I hadn't specified _P_NOWAIT).
>>
>>Is this supposed to work?
>
>Yes.
Actually, on reflection, this is working as designed, unfortunately. spawn
relies on some synchronization with the cygwin process now and if the process
is not a cygwin process, the synchronization never happens. So, spawn
waits for the program to terminate.
cgf
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple