mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-09 02:29:07 +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:
parent
936c062446
commit
a92abb5282
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user