diff options
author | Christopher Faylor <me@cgf.cx> | 2004-12-27 05:13:30 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-12-27 05:13:30 +0300 |
commit | 933673e83be8bebaf0c3b7646c6119d1acd5fc05 (patch) | |
tree | e50a2ef4bcb1833eb8fb520805ed20aa60840687 /winsup/cygwin/init.cc | |
parent | 445d5ce8fcffed71f4349c723b707dc779fe1cc2 (diff) |
* init.cc (dll_entry): Previous code reversion was ill-advised. Revert it.
* sigproc.cc (child_info::sync): Ditto.
* pinfo.cc (_pinfo::exit): Don't set myself.procinfo to NULL since it is no
longer required.
Diffstat (limited to 'winsup/cygwin/init.cc')
-rw-r--r-- | winsup/cygwin/init.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc index 7ba0dc348..7417f05b4 100644 --- a/winsup/cygwin/init.cc +++ b/winsup/cygwin/init.cc @@ -13,6 +13,7 @@ details. */ #include "thread.h" #include "perprocess.h" #include "cygtls.h" +#include "pinfo.h" int NO_COPY dynamically_loaded; static char *search_for = (char *) cygthread::stub; @@ -126,6 +127,8 @@ dll_entry (HANDLE h, DWORD reason, void *static_load) dll_crt0_0 (); break; case DLL_PROCESS_DETACH: + if (myself && myself->exitcode == EXITCODE_UNSET) + myself->exitcode = 1 << 8; break; case DLL_THREAD_ATTACH: munge_threadfunc (); |