tests: jemalloc debug config for FreeBSD 9 and 10.
[sliver-openvswitch.git] / lib / socket-util.c
index 7c40ab8..f8b44cc 100644 (file)
@@ -92,7 +92,7 @@ xset_nonblocking(int fd)
     }
 }
 
-static int
+int
 set_dscp(int fd, uint8_t dscp)
 {
     int val;
@@ -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])
 {