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:
pbrook 2008-03-24 02:31:33 +00:00
parent 7127fe84e7
commit 64538cdf56

1
vl.c
View file

@ -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;