projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b97611
)
Make nl_sock_sendv properly implement 'wait' option.
author
Ben Pfaff
<blp@nicira.com>
Mon, 21 Apr 2008 17:36:49 +0000
(10:36 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 28 Apr 2008 20:52:27 +0000
(13:52 -0700)
lib/netlink.c
patch
|
blob
|
history
diff --git
a/lib/netlink.c
b/lib/netlink.c
index 0defea5506220270c838f277ab6bda67df74af1d..3f7565b1eab61c08dac8ddf1aaa41ae2a4c3a9a2 100644
(file)
--- 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;
}