diff options
author | Christopher Faylor <me@cgf.cx> | 2005-09-07 03:10:17 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-09-07 03:10:17 +0000 |
commit | 41ff9d8c7d4f1224b594eee921b6a966a0585d72 (patch) | |
tree | 9a5f0e4545d151129fb93e3125addca8e0e6a8d9 /winsup/cygwin/dcrt0.cc | |
parent | e92fdf016331c18f76a2ccac28a58edf0e2f2685 (diff) | |
download | cygnal-41ff9d8c7d4f1224b594eee921b6a966a0585d72.tar.gz cygnal-41ff9d8c7d4f1224b594eee921b6a966a0585d72.tar.bz2 cygnal-41ff9d8c7d4f1224b594eee921b6a966a0585d72.zip |
* dcrt0.cc (initial_env): Don't attempt stracing if dynamically loaded.
(dll_crt0_0): Move console initialization earlier.
* init.cc (dll_entry): Move console initialization here.
* exceptions.cc (init_console_handler): Fully remove any old console handler.
* spawn.cc (spawn_guts): Don't fill out windows argv if we've deduced that this
is a cygwin-using program.
(av::fixup): Always check executables to see if they are using cygwin1.dll.
Don't consider .com files to be scripts.
* hookapi.cc (rvadelta): New function.
(PEHeaderFromHModule): Simplify slightly.
(hook_or_detect_cygwin): Use passed in name argument for "HMODULE" rather than
incorrectly reading current program. Calculate delta needed to read image data
and file names if this isn't a real "HMODULE".
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index e88f64a16..1783d5564 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -547,7 +547,7 @@ initial_env () len = GetModuleFileName (NULL, buf, CYG_MAX_PATH); console_printf ("Sleeping %d, pid %u %s\n", ms, GetCurrentProcessId (), buf); Sleep (ms); - if (!strace.active) + if (!strace.active && !dynamically_loaded) { strace.inited = 0; strace.hello (); @@ -634,7 +634,6 @@ dll_crt0_0 () wincap.init (); initial_env (); - init_console_handler (TRUE); init_global_security (); if (!DuplicateHandle (GetCurrentProcess (), GetCurrentProcess (), GetCurrentProcess (), &hMainProc, 0, FALSE, |