4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-08 18:19:08 +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 936c062446
commit a92abb5282

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;
} }