summaryrefslogtreecommitdiff
path: root/lib/socket-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/socket-util.c')
-rw-r--r--lib/socket-util.c7
1 files changed, 7 insertions, 0 deletions
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));
+ }
+}