diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2024-06-30 08:38:11 +0900 |
---|---|---|
committer | Takashi Yano <takashi.yano@nifty.ne.jp> | 2024-06-30 08:38:11 +0900 |
commit | 8d8f11b2b750147380c48b2da2d5698e3479aa67 (patch) | |
tree | e962d83954961b38f7dabd8e901cbe1fc94e7d4e | |
parent | 55baaac2ef5fb946e673ac79e00635cd3d67115b (diff) | |
download | newlib-8d8f11b2b750147380c48b2da2d5698e3479aa67.zip newlib-8d8f11b2b750147380c48b2da2d5698e3479aa67.tar.gz newlib-8d8f11b2b750147380c48b2da2d5698e3479aa67.tar.bz2 |
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>
-rw-r--r-- | winsup/cygwin/fhandler/console.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler/console.cc b/winsup/cygwin/fhandler/console.cc index 8814458..dbf6ce8 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; } |