diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 946f758d7..521e0f323 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2007-01-01 Christopher Faylor + + * spawn.cc (spawn_guts): Don't expect synchronization from a non-cygwin + _P_NOWAIT process. + 2006-12-21 Corinna Vinschen * fhandler_disk_file.cc (fhandler_disk_file::readdir): Improve debug @@ -21,7 +26,7 @@ 2006-12-18 Christopher Faylor * pinfo.cc (set_myself): Use a more foolproof method for determining if - the current process was started from another cygiwn process. + the current process was started from another cygwin process. 2006-12-15 Pierre A. Humblet diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 352e51c87..44bf8ee24 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -673,7 +673,10 @@ loop: sigproc_printf ("spawned windows pid %d", pi.dwProcessId); - synced = ch.sync (pi.dwProcessId, pi.hProcess, INFINITE); + if ((mode == _P_DETACH || mode == _P_NOWAIT) && !ch.iscygwin ()) + synced = false; + else + synced = ch.sync (pi.dwProcessId, pi.hProcess, INFINITE); switch (mode) {