mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 12:59:21 +08:00
Cygwin: console: Fix the condition to interrupt select() by SIGWINCH
- Add code so that select() is not interrupted by SIGWINCH if it is ignored (SIG_IGN or SIG_DFL).
This commit is contained in:
parent
e548c131d8
commit
fae6075d2d
@ -1045,7 +1045,9 @@ peek_console (select_record *me, bool)
|
|||||||
else if (!PeekConsoleInputW (h, &irec, 1, &events_read) || !events_read)
|
else if (!PeekConsoleInputW (h, &irec, 1, &events_read) || !events_read)
|
||||||
break;
|
break;
|
||||||
fh->acquire_input_mutex (INFINITE);
|
fh->acquire_input_mutex (INFINITE);
|
||||||
if (fhandler_console::input_winch == fh->process_input_message ())
|
if (fhandler_console::input_winch == fh->process_input_message ()
|
||||||
|
&& global_sigs[SIGWINCH].sa_handler != SIG_IGN
|
||||||
|
&& global_sigs[SIGWINCH].sa_handler != SIG_DFL)
|
||||||
{
|
{
|
||||||
set_sig_errno (EINTR);
|
set_sig_errno (EINTR);
|
||||||
fh->release_input_mutex ();
|
fh->release_input_mutex ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user