summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-12 06:41:53 +0000
committerChristopher Faylor <me@cgf.cx>2003-09-12 06:41:53 +0000
commitfb3dd716764e26ddfd105cec227a689b97ddae91 (patch)
tree252367f97a5b7b7f1725825c590ef08629dab6d1 /winsup/cygwin/dcrt0.cc
parent3a256354895af562cd86392c8d8c502ac4e73dc0 (diff)
downloadcygnal-fb3dd716764e26ddfd105cec227a689b97ddae91.tar.gz
cygnal-fb3dd716764e26ddfd105cec227a689b97ddae91.tar.bz2
cygnal-fb3dd716764e26ddfd105cec227a689b97ddae91.zip
* dcrt0.cc (_dll_crt0): Accommodate breaking apart of early_stuff_init.
* exceptions.cc (early_stuff_init): Delete. (init_console_handler): New function - top half of early_stuff_init. (init_global_security): New function - bottom half of early_stuff_init. (sig_handle): Avoid special hExeced test for SIGINT. Just terminate the captive process. (signal_exit): Add debugging output. * fhandler_tty.cc (fhandler_tty_slave::open): Don't allocate a console if one already seems to exist. Properly initialize ctrl-c handling if we do allocate a console. * winsup.h (early_stuff_init): Delete declaration. (init_console_handler): New declaration. (init_global_security): New declaration.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index d8141dd06..d5817fb3e 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -859,7 +859,8 @@ _dll_crt0 ()
main_environ = user_data->envptr;
*main_environ = NULL;
- early_stuff_init ();
+ init_console_handler ();
+ init_global_security ();
if (!DuplicateHandle (GetCurrentProcess (), GetCurrentProcess (),
GetCurrentProcess (), &hMainProc, 0, FALSE,
DUPLICATE_SAME_ACCESS))