diff options
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 4c8b42879..71775067f 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -973,7 +973,6 @@ enum extern "C" void __stdcall do_exit (int status) { - BOOL cleanup_pinfo; UINT n = (UINT) status; static int NO_COPY exit_state = 0; @@ -1013,10 +1012,7 @@ do_exit (int status) } if (n & EXIT_REPARENTING) - { - n &= ~EXIT_REPARENTING; - cleanup_pinfo = FALSE; - } + n &= ~EXIT_REPARENTING; else { myself->stopsig = 0; @@ -1045,7 +1041,6 @@ do_exit (int status) } tty_terminate (); - cleanup_pinfo = TRUE; } window_terminate (); @@ -1060,11 +1055,6 @@ do_exit (int status) ForceCloseHandle1 (hExeced, childhProc); } - if (cleanup_pinfo) - myself->record_death (); - else - sigproc_printf ("not cleanup_pinfo"); - shared_terminate (); sigproc_printf ("calling ExitProcess %d", n); @@ -1106,7 +1096,6 @@ __api_fatal (const char *fmt, ...) /* We are going down without mercy. Make sure we reset our process_state. */ sigproc_terminate (); - myself->record_death (); #ifdef DEBUGGING (void) try_to_debug (); #endif |