4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-02 13:05:42 +08:00

Cygwin: console: Add debug print on thread_sync_event creation error

Fixes: 55baaac2ef5f ("Cygwin: console: Add error handling for thread_sync_event")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
This commit is contained in:
Takashi Yano 2024-06-30 08:38:11 +09:00
parent 55baaac2ef
commit 8d8f11b2b7

View File

@ -1861,6 +1861,9 @@ fhandler_console::open (int flags, mode_t)
WaitForSingleObject (thread_sync_event, INFINITE); WaitForSingleObject (thread_sync_event, INFINITE);
CloseHandle (thread_sync_event); CloseHandle (thread_sync_event);
} }
else
debug_printf ("Failed to create thread_sync_event %08x",
GetLastError ());
} }
return 1; return 1;
} }