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
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-10-24 16:11:20 +0400
committerCorinna Vinschen <corinna@vinschen.de>2003-10-24 16:11:20 +0400
commit2b7dcf79ae6335718e4ee92a76fa3d276ac5192b (patch)
tree3d81b9db6af56c64aaa47e61214bddb5413f39a1 /winsup
parent0b4274f58be3c425f3275b993e7183b5cf5ca6b6 (diff)
* fhandler.cc (fhandler_base::fcntl): Don't clobber O_APPEND when
both O_NONBLOCK/O_NDELAY are set for F_SETFL.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index a6c9caa20..aea08932e 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-24 Brian Ford <ford@vss.fsi.com>
+
+ * fhandler.cc (fhandler_base::fcntl): Don't clobber O_APPEND when
+ both O_NONBLOCK/O_NDELAY are set for F_SETFL.
+
2003-10-24 Corinna Vinschen <corinna@vinschen.de>
* path.cc (win32_device_name): Fix comment.
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index 07bcdc94f..79f3e2621 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -1068,7 +1068,7 @@ int fhandler_base::fcntl (int cmd, void *arg)
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;