Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-03-17 05:15:33 +0300
committerChristopher Faylor <me@cgf.cx>2001-03-17 05:15:33 +0300
commitddca580f9abc636905080a119d20461c34410bd1 (patch)
treebadd4b2c1f196e7b87351dc85cd41615cfa5b1d9 /winsup/cygwin/fhandler_termios.cc
parented4c976cf2c59aac48823170908ed40cff9347d2 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/fhandler_termios.cc')
-rw-r--r--winsup/cygwin/fhandler_termios.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc
index 7b8c71feb..948de94dc 100644
--- a/winsup/cygwin/fhandler_termios.cc
+++ b/winsup/cygwin/fhandler_termios.cc
@@ -299,11 +299,8 @@ fhandler_termios::line_edit (const char *rptr, int nread, int always_accept)
set_input_done (ralen > 0);
if (sawsig)
- {
- // tc->write_error = EINTR;
- input_done = -1;
- }
- if (input_done)
+ input_done = -1;
+ else if (input_done)
(void) accept_input ();
return input_done;