From a3ad8241788ba33ccdcc1ad247b03a940efc8ee8 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 18 Sep 2000 23:46:10 +0000 Subject: [PATCH] * fhandler_tty.cc (fhandler_tty_slave::write): Correct typo which caused resetting of windows error to ERROR_IO_DEVICE to be ignored. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_tty.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * 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 * 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;