Cygwin: console: Add debug print on thread_sync_event creation error

Fixes: 55baaac2ef ("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
1 changed files with 3 additions and 0 deletions

View File

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