]> sourceware.org Git - newlib-cygwin.git/commitdiff
* init.cc (dll_entry): Nuke attempt to set exit code since parent will use
authorChristopher Faylor <me@cgf.cx>
Thu, 13 Jan 2005 16:38:35 +0000 (16:38 +0000)
committerChristopher Faylor <me@cgf.cx>
Thu, 13 Jan 2005 16:38:35 +0000 (16:38 +0000)
windows exit code if needed.
* pinfo.cc (pinfo::exit): Move release() here to minimize pid creation race
(suggested by Pierre Humblet).

winsup/cygwin/ChangeLog
winsup/cygwin/init.cc
winsup/cygwin/pinfo.cc

index aa8f6a25814b353c817c9ea7593e52793109992f..31413a86be0774e2dad1210c91f69eb0d3ab046e 100644 (file)
@@ -1,3 +1,10 @@
+2005-01-13  Christopher Faylor  <cgf@timesys.com>
+
+       * 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).
+
 2005-01-12  Christopher Faylor  <cgf@timesys.com>
 
        Reorganize header file inclusion throughout so that cygerrno.h comes
index ad4761820d11ffbf1e6731aae6dcd28cf7dce62e..66fb5d50e6f727a35d5f02d5fe3d9930aa1e4e3f 100644 (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 ();
index 84a66ed53b8c4838eefae05443683b0785774361..37821262d759d9c582fb41eae4c9ce5891d61af2 100644 (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;
This page took 0.031305 seconds and 5 git commands to generate.