aboutsummaryrefslogtreecommitdiff
path: root/src/fd_util.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-10 16:53:20 +0100
committerMax Kellermann <max@duempel.org>2009-11-10 16:53:20 +0100
commit3d2a9d35450876fe28708340e2b4ed3831d9d9af (patch)
treef9bc3f6dc823853a025f8f151658797e2cee2978 /src/fd_util.h
parent6975c087e069bd19cf4838836c1ef350480bb8dd (diff)
fd_util: added function pipe_cloexec()
Same as pipe_cloexec_nonblock(), but doesn't set non-blocking mode.
Diffstat (limited to 'src/fd_util.h')
-rw-r--r--src/fd_util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fd_util.h b/src/fd_util.h
index 68a7d86a..8b94a3a2 100644
--- a/src/fd_util.h
+++ b/src/fd_util.h
@@ -58,6 +58,13 @@ creat_cloexec(const char *path_fs, int mode);
/**
* Wrapper for pipe(), which sets the CLOEXEC flag (atomically if
* supported by the OS).
+ */
+int
+pipe_cloexec(int fd[2]);
+
+/**
+ * Wrapper for pipe(), which sets the CLOEXEC flag (atomically if
+ * supported by the OS).
*
* On systems that supports it (everybody except for Windows), it also
* sets the NONBLOCK flag.