diff options
author | Christopher Faylor <me@cgf.cx> | 2002-12-21 07:38:12 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-12-21 07:38:12 +0300 |
commit | b18962e228dc5a9b4729acd79078fca1389f2ba7 (patch) | |
tree | c82f7b51122c3992c5e643cf39e8a6e53bc5715f /winsup/cygwin/fhandler_tty.cc | |
parent | 4753d27c08a083096da1f6ef571e0496621a7b86 (diff) |
* fhandler.h (line_edit_status): Reorganize so that tests for error condition
can be < or >.
* fhandler_tty.cc (fhandler_pty_master::write): Don't return after sending a
signal.
* fhandler_termios.cc (fhandler_termios::line_edit): Trivial change to use
built-in bool types.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 0a5ba76f6..ef15f9f40 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -1083,11 +1083,12 @@ fhandler_pty_master::write (const void *ptr, size_t len) for (i=0; i < (int) len; i++) { line_edit_status status = line_edit (p++, 1); - if (status == line_edit_ok || status == line_edit_input_done) - continue; - if (status != line_edit_pipe_full) - i = -1; - break; + if (status > line_edit_signalled) + { + if (status != line_edit_pipe_full) + i = -1; + break; + } } return i; } |