diff options
author | Max Kellermann <max@duempel.org> | 2009-11-10 16:53:20 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-10 16:53:20 +0100 |
commit | 3d2a9d35450876fe28708340e2b4ed3831d9d9af (patch) | |
tree | f9bc3f6dc823853a025f8f151658797e2cee2978 /src/fd_util.h | |
parent | 6975c087e069bd19cf4838836c1ef350480bb8dd (diff) | |
download | mpd-3d2a9d35450876fe28708340e2b4ed3831d9d9af.tar.gz mpd-3d2a9d35450876fe28708340e2b4ed3831d9d9af.tar.xz mpd-3d2a9d35450876fe28708340e2b4ed3831d9d9af.zip |
fd_util: added function pipe_cloexec()
Same as pipe_cloexec_nonblock(), but doesn't set non-blocking mode.
Diffstat (limited to '')
-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. |