diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-24 02:31:33 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-24 02:31:33 +0000 |
commit | 64538cdf5653275661aff918d00a363c570ad39a (patch) | |
tree | 80513ac5ca6c9111310647269da6fe96896d86b7 /vl.c | |
parent | 7127fe84e70487a8ffd9840391ce735a49541f8f (diff) | |
download | hqemu-64538cdf5653275661aff918d00a363c570ad39a.zip hqemu-64538cdf5653275661aff918d00a363c570ad39a.tar.gz |
Put tap fd into nonblocking mode.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4104 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |