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>2000-09-19 03:46:10 +0400
committerChristopher Faylor <me@cgf.cx>2000-09-19 03:46:10 +0400
commita3ad8241788ba33ccdcc1ad247b03a940efc8ee8 (patch)
tree066589db8a18155719ee21158bf847ab7ece4ade /winsup/cygwin/fhandler_tty.cc
parent9a02bdb58c0021ff6bf8e4decbb9306db22c5099 (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/fhandler_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc2
1 files changed, 1 insertions, 1 deletions
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;