* fhandler_termios.cc (fhandler_termios::line_edit): Don't accept input when a

signal is sent or we'll end up in an EOF/signal race.
This commit is contained in:
Christopher Faylor 2001-03-17 02:15:33 +00:00
parent ed4c976cf2
commit ddca580f9a
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,8 @@
Fri Mar 16 21:13:23 2001 Christopher Faylor <cgf@cygnus.com>
* fhandler_termios.cc (fhandler_termios::line_edit): Don't accept input
when a signal is sent or we'll end up in an EOF/signal race.
Fri Mar 16 20:25:40 2001 Christopher Faylor <cgf@cygnus.com> Fri Mar 16 20:25:40 2001 Christopher Faylor <cgf@cygnus.com>
* path.cc: Translate scan states from defines to enums. * path.cc: Translate scan states from defines to enums.

View File

@ -299,11 +299,8 @@ fhandler_termios::line_edit (const char *rptr, int nread, int always_accept)
set_input_done (ralen > 0); set_input_done (ralen > 0);
if (sawsig) if (sawsig)
{ input_done = -1;
// tc->write_error = EINTR; else if (input_done)
input_done = -1;
}
if (input_done)
(void) accept_input (); (void) accept_input ();
return input_done; return input_done;