Files
mpv/stream
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-10-25 21:25:54 +02:00
2013-11-30 22:40:51 +01:00
2013-10-03 23:14:03 +02:00
2013-08-06 22:52:31 +02:00
2013-11-30 22:40:51 +01:00
2013-07-07 19:42:38 +02:00
2013-11-30 22:40:51 +01:00
2013-11-01 13:00:15 +01:00
2013-08-26 10:09:46 +02:00
2013-11-30 22:40:51 +01:00
2013-11-19 22:39:04 +01:00
2013-11-30 22:40:51 +01:00
2013-11-30 22:40:51 +01:00
2013-11-30 22:40:51 +01:00
2013-11-30 22:40:51 +01:00
2013-11-28 19:28:38 +01:00
2013-11-19 22:39:04 +01:00
2013-11-09 23:32:58 +01:00
2013-11-01 17:35:38 +01:00
2013-11-01 17:35:38 +01:00
2013-11-13 21:21:00 +01:00