diff options
Diffstat (limited to 'src/fd_util.h')
-rw-r--r-- | src/fd_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fd_util.h b/src/fd_util.h index 68a7d86ab..8b94a3a27 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. |