summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/pinfo.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-01-13 16:38:35 +0000
committerChristopher Faylor <me@cgf.cx>2005-01-13 16:38:35 +0000
commita09a6e6838838ef396fb933fbaf5a8e2728dcd2a (patch)
tree81b612bdb6248256f8eca0d9ccde92255f1e9160 /winsup/cygwin/pinfo.cc
parent29de2b193827d19fa753c1c73b2aae304c8f992e (diff)
downloadcygnal-a09a6e6838838ef396fb933fbaf5a8e2728dcd2a.tar.gz
cygnal-a09a6e6838838ef396fb933fbaf5a8e2728dcd2a.tar.bz2
cygnal-a09a6e6838838ef396fb933fbaf5a8e2728dcd2a.zip
* init.cc (dll_entry): Nuke attempt to set exit code since parent will use
windows exit code if needed. * pinfo.cc (pinfo::exit): Move release() here to minimize pid creation race (suggested by Pierre Humblet).
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r--winsup/cygwin/pinfo.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 84a66ed53..37821262d 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -140,6 +140,7 @@ pinfo::exit (DWORD n)
set_exit_state (PID_EXITED);
if (n != EXITCODE_EXEC)
self->alert_parent (0);
+ release ();
_my_tls.stacklock = 0;
_my_tls.stackptr = _my_tls.stack;