* cygheap.cc (init_cygheap::manage_console_count): Turn console control handler

on/off depending on whether we have allocated a console or not.
* dcrt0.cc (child_info_fork::fork_retry): Add more potential retry statuses.
(dll_crt0_0): Turn on/off console control depending on whether we have a
controlling tty or not.
* exceptions.cc (init_console_handler): Change BOOL to bool.
* fhandler_console.cc (fhandler_console::need_invisible): Cosmetic change.
* winsup.h (init_console_handler): Reflect argument type change.
* wincap.h (supports_setconsolectrlhandler_null): Remove duplicate capability
throughout.
* wincap.cc: Ditto.
This commit is contained in:
Christopher Faylor
2006-03-16 02:57:37 +00:00
parent 490cfb83e9
commit 974f27a51a
8 changed files with 38 additions and 32 deletions

View File

@@ -100,7 +100,7 @@ dummy_ctrl_c_handler (DWORD dwCtrlType)
}
void
init_console_handler (BOOL install_handler)
init_console_handler (bool install_handler)
{
BOOL res;
while (SetConsoleCtrlHandler (ctrl_c_handler, FALSE))