diff options
author | Christopher Faylor <me@cgf.cx> | 2005-01-13 16:38:35 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-01-13 16:38:35 +0000 |
commit | a09a6e6838838ef396fb933fbaf5a8e2728dcd2a (patch) | |
tree | 81b612bdb6248256f8eca0d9ccde92255f1e9160 /winsup/cygwin/init.cc | |
parent | 29de2b193827d19fa753c1c73b2aae304c8f992e (diff) | |
download | cygnal-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/init.cc')
-rw-r--r-- | winsup/cygwin/init.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc index ad4761820..66fb5d50e 100644 --- a/winsup/cygwin/init.cc +++ b/winsup/cygwin/init.cc @@ -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 (); |