mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-06 14:30:38 +08:00
* 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:
parent
29de2b1938
commit
a09a6e6838
@ -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>
|
2005-01-12 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
Reorganize header file inclusion throughout so that cygerrno.h comes
|
Reorganize header file inclusion throughout so that cygerrno.h comes
|
||||||
|
@ -128,12 +128,6 @@ dll_entry (HANDLE h, DWORD reason, void *static_load)
|
|||||||
dll_crt0_0 ();
|
dll_crt0_0 ();
|
||||||
break;
|
break;
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
if (myself)
|
|
||||||
{
|
|
||||||
if (!hExeced && myself->exitcode == EXITCODE_UNSET)
|
|
||||||
myself->exitcode = 1 << 8;
|
|
||||||
myself.release ();
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case DLL_THREAD_ATTACH:
|
case DLL_THREAD_ATTACH:
|
||||||
munge_threadfunc ();
|
munge_threadfunc ();
|
||||||
|
@ -140,6 +140,7 @@ pinfo::exit (DWORD n)
|
|||||||
set_exit_state (PID_EXITED);
|
set_exit_state (PID_EXITED);
|
||||||
if (n != EXITCODE_EXEC)
|
if (n != EXITCODE_EXEC)
|
||||||
self->alert_parent (0);
|
self->alert_parent (0);
|
||||||
|
release ();
|
||||||
|
|
||||||
_my_tls.stacklock = 0;
|
_my_tls.stacklock = 0;
|
||||||
_my_tls.stackptr = _my_tls.stack;
|
_my_tls.stackptr = _my_tls.stack;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user