* 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

@ -128,12 +128,6 @@ dll_entry (HANDLE h, DWORD reason, void *static_load)
dll_crt0_0 ();
break;
case DLL_PROCESS_DETACH:
if (myself)
{
if (!hExeced && myself->exitcode == EXITCODE_UNSET)
myself->exitcode = 1 << 8;
myself.release ();
}
break;
case DLL_THREAD_ATTACH:
munge_threadfunc ();