* autoload.cc (LoadDLLinitfunc): Remove debugging statement.
* exceptions.cc (sig_handle_tty_stop): Move setting of PID_STOPPED to earlier in interrupt. ((interrupt_setup): i.e., here. (sig_handle): Don't queue multiple SIGSTOPS. * fhandler.h (bg_check_types): Enumerate return value of bg_check for clarity. * signal.cc (kill_pgrp): Minor cleanup. * fhandler_termios.cc (fhandler_termios::bg_check): Use enumerated type for function return. Don't raise signal if a signal is already queued. * fhandler_console.cc (fhandler_console::read): Use enumerated return type for bg_check. * select.cc: Ditto, throughout. * read.cc: Ditto, throughout. * termios.cc: Ditto, throughout. (_read): YA interrupt detect simplification. * wait.cc (wait4): Ditto.
This commit is contained in:
@@ -412,7 +412,7 @@ peek_pipe (select_record *s, int ignra)
|
||||
gotone = 1;
|
||||
goto out;
|
||||
}
|
||||
if (fh->bg_check (SIGTTIN) <= 0)
|
||||
if (fh->bg_check (SIGTTIN) <= bg_eof)
|
||||
{
|
||||
gotone = s->read_ready = 1;
|
||||
goto out;
|
||||
@@ -627,7 +627,7 @@ peek_console (select_record *me, int ignra)
|
||||
set_handle_or_return_if_not_open (h, me);
|
||||
|
||||
for (;;)
|
||||
if (fh->bg_check (SIGTTIN) <= 0)
|
||||
if (fh->bg_check (SIGTTIN) <= bg_eof)
|
||||
return me->read_ready = 1;
|
||||
else if (!PeekConsoleInput (h, &irec, 1, &events_read) || !events_read)
|
||||
break;
|
||||
|
Reference in New Issue
Block a user