From 6f88bc77617dbf8a919830ae070e5ca926755587 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 26 Oct 2014 01:18:55 +0200 Subject: osdep: add helper for creating a sane pipe() Or in other words, a pipe that has the CLOEXEC flag set. Needed since Linux' pipe2() is not in POSIX yet. --- osdep/io.h | 1 + 1 file changed, 1 insertion(+) (limited to 'osdep/io.h') diff --git a/osdep/io.h b/osdep/io.h index ac1a0f90fa..c3fc0cf9cb 100644 --- a/osdep/io.h +++ b/osdep/io.h @@ -45,6 +45,7 @@ #endif bool mp_set_cloexec(int fd); +int mp_make_cloexec_pipe(int pipes[2]); int mp_make_wakeup_pipe(int pipes[2]); #ifdef _WIN32 -- cgit v1.2.3