Index: fhandler.cc =================================================================== RCS file: /cvs/src/src/winsup/cygwin/fhandler.cc,v retrieving revision 1.159 diff -u -p -r1.159 fhandler.cc --- fhandler.cc 30 Sep 2003 21:46:08 -0000 1.159 +++ fhandler.cc 23 Oct 2003 22:46:06 -0000 @@ -1068,7 +1068,7 @@ int fhandler_base::fcntl (int cmd, void Set only the flag that has been passed in. If both are set, just record O_NONBLOCK. */ if ((new_flags & OLD_O_NDELAY) && (new_flags & O_NONBLOCK)) - new_flags = O_NONBLOCK; + new_flags &= ~OLD_O_NDELAY; set_flags ((get_flags () & ~allowed_flags) | new_flags); } res = 0;