* 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).
This commit is contained in:
Christopher Faylor
2005-01-13 16:38:35 +00:00
parent 29de2b1938
commit a09a6e6838
3 changed files with 8 additions and 6 deletions

View File

@@ -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;