diff options
author | Christopher Faylor <me@cgf.cx> | 2000-09-19 03:46:10 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-09-19 03:46:10 +0400 |
commit | a3ad8241788ba33ccdcc1ad247b03a940efc8ee8 (patch) | |
tree | 066589db8a18155719ee21158bf847ab7ece4ade /winsup/cygwin | |
parent | 9a02bdb58c0021ff6bf8e4decbb9306db22c5099 (diff) |
* fhandler_tty.cc (fhandler_tty_slave::write): Correct typo which caused
resetting of windows error to ERROR_IO_DEVICE to be ignored.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c8ba9ecf7..366daf65d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 18 19:44:08 2000 Christopher Faylor <cgf@cygnus.com> + + * fhandler_tty.cc (fhandler_tty_slave::write): Correct typo which + caused resetting of windows error to ERROR_IO_DEVICE to be ignored. + Mon Sep 18 17:15:37 2000 Kazuhiro Fujieda <fujieda@jaist.ac.jp> * path.cc (mount_info::read_mounts): Don't delete mount entries of diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 996118281..7a85e1ac5 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -571,7 +571,7 @@ fhandler_tty_slave::write (const void *ptr, size_t len) case ERROR_NO_DATA: err = ERROR_IO_DEVICE; default: - __seterrno (); + __seterrno_from_win_error (err); } _raise (SIGHUP); /* FIXME: Should this be SIGTTOU? */ towrite = (DWORD) -1; |