X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fsocket-util.c;h=f8b44cc18741945cdd5ab7505e7dfbe4fe43389b;hb=c0d95206c068d95460a068defd76274e73225a4a;hp=e32c03dd4abf253b36d749d4720a749c7684916e;hpb=f5c45121cf59ef3099ba669c3590d844bedf53e9;p=sliver-openvswitch.git diff --git a/lib/socket-util.c b/lib/socket-util.c index e32c03dd4..f8b44cc18 100644 --- a/lib/socket-util.c +++ b/lib/socket-util.c @@ -893,6 +893,14 @@ xpipe(int fds[2]) } } +void +xpipe_nonblocking(int fds[2]) +{ + xpipe(fds); + xset_nonblocking(fds[0]); + xset_nonblocking(fds[1]); +} + void xsocketpair(int domain, int type, int protocol, int fds[2]) {