diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-04 04:09:14 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-04 04:09:14 +0000 |
commit | b6183403ae71e3ac544d486975b1c06ddf437a8a (patch) | |
tree | 72e709c80a2201865b09a4ae705871d9504f83b0 /winsup/cygwin/ioctl.cc | |
parent | 2f14399c1628280e8bf5fd0d50d330e9397646b0 (diff) | |
download | cygnal-b6183403ae71e3ac544d486975b1c06ddf437a8a.tar.gz cygnal-b6183403ae71e3ac544d486975b1c06ddf437a8a.tar.bz2 cygnal-b6183403ae71e3ac544d486975b1c06ddf437a8a.zip |
* fhandler_serial.cc (fhandler_serial::ioctl): Reformat. Set errno
appropriately. Exit from the bottom. Correctly deal with third argument for
TCFLSH. (Suggested by Sergey Okhapkin)
Diffstat (limited to 'winsup/cygwin/ioctl.cc')
-rw-r--r-- | winsup/cygwin/ioctl.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/ioctl.cc b/winsup/cygwin/ioctl.cc index 17062eec7..e15d54437 100644 --- a/winsup/cygwin/ioctl.cc +++ b/winsup/cygwin/ioctl.cc @@ -52,5 +52,7 @@ ioctl (int fd, int cmd, ...) return tcsetattr (fd, TCSAFLUSH, (struct termios *) argp); } - return cfd->ioctl (cmd, argp); + int res = cfd->ioctl (cmd, argp); + debug_printf ("returning %d", res); + return res; } |