1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-30 11:02:10 +00:00
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
..
ar HIDRemote: remove OS X version checks 2013-09-17 20:44:54 +02:00
getch2-win.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
getch2.c switch the build system to waf 2013-11-21 21:22:36 +01:00
getch2.h core: cleanup more mp_fifo leftovers 2013-07-02 14:11:31 +02:00
glob-win.c osdep:/glob-win.c: reformat 2012-08-03 01:31:32 +02:00
glob.h
io.c Use O_CLOEXEC when creating FDs 2013-11-30 22:40:51 +01:00
io.h Use O_CLOEXEC when creating FDs 2013-11-30 22:40:51 +01:00
macosx_application_objc.h cocoa: fix race condition with input context creation 2013-10-24 00:07:05 +02:00
macosx_application.h cocoa: remove usage of mp_fifo 2013-07-03 22:25:45 +02:00
macosx_application.m cocoa: fix opening quarantined files on 10.9 with the bundle [2] 2013-10-25 09:10:50 +02:00
macosx_compat.h OSX: fix compilation with 10.7 SDK 2013-06-19 21:24:26 +02:00
macosx_events.h macosx: remove platform specific input queue 2013-08-13 23:02:43 +02:00
macosx_events.m osx: fix -Wshadow warnings on platform specific code 2013-11-04 08:33:35 +01:00
mpv.exe.manifest win32: edit resource files, in particular set CompanyName 2013-09-23 01:44:09 +02:00
mpv.rc Copyright, LICENSE: switch to GPL version 2 or later 2013-10-13 01:36:10 +02:00
numcores.c vd_ffmpeg: set thread count to number of cores on machine by default 2010-12-20 05:53:28 +02:00
numcores.h vd_ffmpeg: set thread count to number of cores on machine by default 2010-12-20 05:53:28 +02:00
path-macosx.m macosx: move bundle path stuff to path-macosx.m 2013-09-18 19:30:11 +02:00
path-win.c path, win32: redo user configfile path handling 2013-09-18 19:08:51 +02:00
path.h osdep/path: remove ifdefs 2013-09-18 19:42:19 +02:00
priority.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
priority.h cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
threads.c stream: split out pthread helper function 2013-11-17 16:42:57 +01:00
threads.h stream: split out pthread helper function 2013-11-17 16:42:57 +01:00
timer-darwin.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
timer-linux.c configure: uniform the defines to #define HAVE_xxx (0|1) 2013-11-03 21:59:54 +01:00
timer-win2.c timer: use gettimeofday() on Windows 2013-05-26 16:44:20 +02:00
timer.c Replace calls to usec_sleep() 2013-05-26 16:44:20 +02:00
timer.h Replace calls to usec_sleep() 2013-05-26 16:44:20 +02:00