mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
Put tap fd into nonblocking mode.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4104 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
7127fe84e7
commit
64538cdf56
1 changed files with 1 additions and 0 deletions
1
vl.c
1
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;
|
||||
|
|
Loading…
Reference in a new issue