From: Ben Pfaff Date: Mon, 21 Apr 2008 17:36:49 +0000 (-0700) Subject: Make nl_sock_sendv properly implement 'wait' option. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cacf0c492676ee4887005ae0e7a888d36e2c2069;p=openvswitch Make nl_sock_sendv properly implement 'wait' option. --- diff --git a/lib/netlink.c b/lib/netlink.c index 0defea55..3f7565b1 100644 --- a/lib/netlink.c +++ b/lib/netlink.c @@ -235,7 +235,7 @@ nl_sock_sendv(struct nl_sock *sock, const struct iovec iov[], size_t n_iov, msg.msg_iov = (struct iovec *) iov; msg.msg_iovlen = n_iov; do { - retval = sendmsg(sock->fd, &msg, MSG_DONTWAIT); + retval = sendmsg(sock->fd, &msg, wait ? 0 : MSG_DONTWAIT); } while (retval < 0 && errno == EINTR); return retval < 0 ? errno : 0; }