Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-05-17 05:21:06 +0400
committerChristopher Faylor <me@cgf.cx>2005-05-17 05:21:06 +0400
commit5c8e6fbd8cba2653984ca48d8a1872b3e6974a2c (patch)
tree4e30129e6b969d33e959b90a7fcc09946e8d8c98 /winsup/cygwin/init.cc
parentb55ba2f3da13dc697c57d7efe3b98c75da2a87b5 (diff)
* include/sys/cygwin.h (enum cygwin_getinfo_types): Add CW_DEBUG_SELF.
* external.cc (cygwin_internal): Implement CW_DEBUG_SELF. * init.cc (dll_entry): Minor rearrangement of code.
Diffstat (limited to 'winsup/cygwin/init.cc')
-rw-r--r--winsup/cygwin/init.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc
index 3d7a91c50..a0d34f51a 100644
--- a/winsup/cygwin/init.cc
+++ b/winsup/cygwin/init.cc
@@ -119,6 +119,7 @@ dll_entry (HANDLE h, DWORD reason, void *static_load)
{
case DLL_PROCESS_ATTACH:
cygwin_hmodule = (HMODULE) h;
+ dynamically_loaded = (static_load == NULL);
/* Is the stack at an unusual high address? Check if we're running on
a 64 bit machine. If so, respawn. */
if (&is_64bit_machine >= (PBOOL) 0x400000
@@ -127,7 +128,6 @@ dll_entry (HANDLE h, DWORD reason, void *static_load)
respawn_wow64_process ();
prime_threads ();
- dynamically_loaded = (static_load == NULL);
dll_crt0_0 ();
break;
case DLL_PROCESS_DETACH: