* dll_init.cc (dll_list::load_after_fork): Don't revert to LoadLibrary if
LoadLibraryEx fails. * dtable.cc (dtable::dec_console_fds): Eliminate. (dtable::release): Don't treat console specially. (dtable::build_fhandler): Ditto. * dtable.h (console_fds): Eliminate. (dtable::dec_console_fds): Eliminate. (dtable::inc_console_fds): Eliminate. * fhandler.h (fhandler_console::open_fhs): New static element. * fhandler_console.cc (fhandler_console::open): Increment open_fs. (fhandler_console::close): Call FreeConsole if no more open consoles and ctty is not associated with the console. * syscalls.cc (setsid): Simplify check for when to call FreeConsole. (check_pty_fds): Eliminate definition. * winsup.h (check_pty_fds): Eliminate declaration.
This commit is contained in:
@ -307,11 +307,6 @@ dll_list::load_after_fork (HANDLE parent, dll *first)
|
||||
bool unload = true;
|
||||
HMODULE h = LoadLibraryEx (d.name, NULL, DONT_RESOLVE_DLL_REFERENCES);
|
||||
|
||||
if (!h)
|
||||
{
|
||||
unload = false;
|
||||
h = LoadLibrary (d.name);
|
||||
}
|
||||
if (!h)
|
||||
system_printf ("can't reload %s", d.name);
|
||||
/* See if DLL will load in proper place. If so, free it and reload
|
||||
|
Reference in New Issue
Block a user