* exceptions.cc (early_stuff_init): Rename from misnamed set_console_handler.

(ctrl_c_handler): Attempt to work around potential signal duplication during
process startup.
(sig_handle): Ignore SIGINT when we're just an "exec stub".
* spawn.cc (spawn_guts): Store pid of spawned process in global for use by
ctrl_c_handler.
* dcrt0.cc (dll_crt0_1): Call renamed initialization function.
* winsup.h: Reflect function name change.
This commit is contained in:
Christopher Faylor
2002-01-10 03:21:27 +00:00
parent fe37dd79ec
commit c0a8e8d0f9
5 changed files with 39 additions and 12 deletions

View File

@@ -813,7 +813,7 @@ _dll_crt0 ()
main_environ = user_data->envptr;
*main_environ = NULL;
set_console_handler ();
early_stuff_init ();
if (!DuplicateHandle (GetCurrentProcess (), GetCurrentProcess (),
GetCurrentProcess (), &hMainProc, 0, FALSE,
DUPLICATE_SAME_ACCESS))