From cacf0c492676ee4887005ae0e7a888d36e2c2069 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 21 Apr 2008 10:36:49 -0700 Subject: [PATCH] Make nl_sock_sendv properly implement 'wait' option. --- lib/netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2