* fhandler.cc (fhandler_base::fcntl): Don't clobber O_APPEND when
both O_NONBLOCK/O_NDELAY are set for F_SETFL.
This commit is contained in:
parent
0b4274f58b
commit
2b7dcf79ae
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user