From 280fdd0b67c3dbd3cee12bf6dbe363f222d98342 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 28 Sep 2005 15:18:49 +0000 Subject: * dcrt0.cc (getstack): New function. (alloc_stack): Use tls stuff for stack info rather than calling VirtualQuery. (dll_crt0_0): Initialize _impure_ptr stuff much earlier. Move init_console_handler here. * fork.cc (class frok): New class renamed from local fork() struct. (stack_base): Change argument type. Use tls stuff to determine stack info rather than calling VirtualQuery. (frok::child): Rename from fork_child. Eliminate now unneeded arguments. (frok::parent): Rename from fork_parent and ditto. Set error and errno as appropriate. Fixup impersonation in cleanup, if needed. Try harder to set errno appropriately. (fork): Define "grouped" as a frok type. Deal with errors from fork_parent here. * init.cc (dll_entry): Remove init_console_handler call. --- winsup/cygwin/init.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'winsup/cygwin/init.cc') diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc index 96dda7c1e..655d89160 100644 --- a/winsup/cygwin/init.cc +++ b/winsup/cygwin/init.cc @@ -148,7 +148,6 @@ dll_entry (HANDLE h, DWORD reason, void *static_load) case DLL_PROCESS_ATTACH: cygwin_hmodule = (HMODULE) h; dynamically_loaded = (static_load == NULL); - init_console_handler (TRUE); /* Is the stack at an unusual address? This is, an address which is in the usual space occupied by the process image, but below -- cgit v1.2.3