diff --git a/winsup/cygwin/fhandler/console.cc b/winsup/cygwin/fhandler/console.cc index 881445824..dbf6ce8a6 100644 --- a/winsup/cygwin/fhandler/console.cc +++ b/winsup/cygwin/fhandler/console.cc @@ -1861,6 +1861,9 @@ fhandler_console::open (int flags, mode_t) WaitForSingleObject (thread_sync_event, INFINITE); CloseHandle (thread_sync_event); } + else + debug_printf ("Failed to create thread_sync_event %08x", + GetLastError ()); } return 1; }