Files
mpv/osdep
wm4 95cfe58e3d Use O_CLOEXEC when creating FDs
This is needed so that new processes (created with fork+exec) don't
inherit open files, which can be important for a number of reasons.

Since O_CLOEXEC is relatively new (POSIX.1-2008, before that Linux
specific), we #define it to 0 in io.h to prevent compilation errors on
older/crappy systems. At least this is the plan.

input.c creates a pipe. For that, add a mp_set_cloexec() function (which
is based on Weston's code in vo_wayland.c, but more correct). We could
use pipe2() instead, but that is Linux specific. Technically, we have a
race condition, but it won't matter.
2013-11-30 22:40:51 +01:00
..
2013-09-17 20:44:54 +02:00
2013-11-21 21:22:36 +01:00
2013-07-02 14:11:31 +02:00
2012-08-03 01:31:32 +02:00
2009-03-01 13:13:25 +00:00
2013-11-30 22:40:51 +01:00
2013-11-30 22:40:51 +01:00
2013-09-18 19:42:19 +02:00
2013-05-26 16:44:20 +02:00
2013-05-26 16:44:20 +02:00