X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fsocket-util.c;h=12bbc716d91dcff972d06a2472be1dd949406c36;hb=a328a943f173391cd9a9a54e257c8dabcd463402;hp=e0f34e71409dec627e16f9938b5512f20534e662;hpb=c84933bf9a73e334207b6b309749d9e9c3b04812;p=sliver-openvswitch.git diff --git a/lib/socket-util.c b/lib/socket-util.c index e0f34e714..12bbc716d 100644 --- a/lib/socket-util.c +++ b/lib/socket-util.c @@ -767,3 +767,10 @@ get_mtime(const char *file_name, struct timespec *mtime) } } +void +xpipe(int fds[2]) +{ + if (pipe(fds)) { + VLOG_FATAL("failed to create pipe (%s)", strerror(errno)); + } +}