]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commit
Do not disturb old fd flags (eg O_APPEND) when setting nonblock.
authorIan Jackson <iwj@mariner.uk.xensource.com>
Fri, 18 Jul 2008 13:28:52 +0000 (14:28 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 18 Jul 2008 13:36:56 +0000 (14:36 +0100)
commit454f34b59e80edd4938686ea3c89a07a86694727
treee3ee2316edf8a89f7ae4e040cee903c8ec0d3a04
parent800b3dfade9c47728236d6c6c582375fce72f705
Do not disturb old fd flags (eg O_APPEND) when setting nonblock.

socket_set_nonblock should not unconditionally call
fcntl(,F_SETFL,O_NONBLOCK) because that would clear other flags which
might be intentionally set on the fd.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
vl.c