fhandler_tty_slave::ioctl (FIONBIO) return status

Brian Ford ford@vss.fsi.com
Thu Oct 23 22:14:00 GMT 2003


I don't really understand the code here in depth, but could someone
explain to me why the attached trivial patch would'nt fix a minor bug?
Thanks.

2003-10-23  Brian Ford  <ford@vss.fsi.com>

	* fhandler_tty.c (fhandler_tty_slave::ioctl): Assure correct
	return value for FIONBIO.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444
-------------- next part --------------
Index: fhandler_tty.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/fhandler_tty.cc,v
retrieving revision 1.113
diff -u -p -r1.113 fhandler_tty.cc
--- fhandler_tty.cc	22 Oct 2003 10:07:58 -0000	1.113
+++ fhandler_tty.cc	23 Oct 2003 21:56:45 -0000
@@ -1033,6 +1033,7 @@ fhandler_tty_slave::ioctl (unsigned int 
       break;
     case FIONBIO:
       set_nonblocking (*(int *) arg);
+      get_ttyp ()->ioctl_retval = 0;
       goto out;
     default:
       set_errno (EINVAL);


More information about the Cygwin-patches mailing list