Commit 64538cdf5653275661aff918d00a363c570ad39a

Authored by pbrook
1 parent 7127fe84

Put tap fd into nonblocking mode.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4104 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 0 deletions
... ... @@ -4827,6 +4827,7 @@ static int net_client_init(const char *str)
4827 4827 vlan->nb_host_devs++;
4828 4828 if (get_param_value(buf, sizeof(buf), "fd", p) > 0) {
4829 4829 fd = strtol(buf, NULL, 0);
  4830 + fcntl(fd, F_SETFL, O_NONBLOCK);
4830 4831 ret = -1;
4831 4832 if (net_tap_fd_init(vlan, fd))
4832 4833 ret = 0;
... ...