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
..
ai_alsa1x.c
ai_oss.c
ai_sndio.c
audio_in.c
audio_in.h
cache.c
cdd.h
cdinfo.c
cookies.c
cookies.h
dvb_tune.c
dvb_tune.h
dvbin.h
frequencies.c
frequencies.h
pvr.h
rar.c
rar.h
stream.c
stream.h
stream_avdevice.c
stream_bluray.c
stream_cdda.c
stream_dvb.c
stream_dvd.c
stream_dvd.h
stream_dvd_common.c
stream_dvd_common.h
stream_edl.c
stream_file.c
stream_lavf.c
stream_memory.c
stream_mf.c
stream_null.c
stream_pvr.c
stream_radio.c
stream_radio.h
stream_rar.c
stream_smb.c
stream_tv.c
stream_vcd.c
tv.c
tv.h
tvi_def.h
tvi_dummy.c
tvi_v4l2.c
vcd_read.h
vcd_read_darwin.h
vcd_read_fbsd.h
vcd_read_win32.h