projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7127fe8
)
Put tap fd into nonblocking mode.
author
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 24 Mar 2008 02:31:33 +0000
(
02:31
+0000)
committer
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 24 Mar 2008 02:31:33 +0000
(
02:31
+0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4104
c046a42c
-6fe2-441c-8c8c-
71466251a162
vl.c
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index 82f84db3a721cd115556a592bc4e6c7a43907f20..ba98bbb0e83d0796c7ec159a4351e0512c061638 100644
(file)
--- a/
vl.c
+++ b/
vl.c
@@
-4827,6
+4827,7
@@
static int net_client_init(const char *str)
vlan->nb_host_devs++;
if (get_param_value(buf, sizeof(buf), "fd", p) > 0) {
fd = strtol(buf, NULL, 0);
+ fcntl(fd, F_SETFL, O_NONBLOCK);
ret = -1;
if (net_tap_fd_init(vlan, fd))
ret = 0;