mpv/osdep
Uoti Urpala c3e46833c2 input: don't make fd 0 nonblocking
Setting O_NONBLOCK on a file descriptor also affects all other fds
that share the same underlying open file description, and in case of
stdin such sharing is likely. Making stdin nonblocking can also make
stdout nonblocking (they may be the same connection to a terminal),
and it can also affect other processes (in "program1 | program2", the
shell may give the same terminal connection to program1 as stdin and
to program2 as stdout, thus program1 making its stdin nonblocking also
turns program2's stdout nonblocking).

To avoid these problems stop making fd 0 nonblocking. After the
previous commit this should no longer cause problems as long as
select() does not spuriously report the fd as readable.
2011-07-17 17:05:08 +03:00
..
getch2-os2.c input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
getch2-win.c input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
getch2.c input: don't make fd 0 nonblocking 2011-07-17 17:05:08 +03:00
getch2.h input: make slave command file descriptors nonblocking 2011-05-04 18:53:17 +03:00
gettimeofday.c osdep: Fix gettimeofday type to match the real one 2010-11-02 04:14:44 +02:00
glob-win.c osdep: tweak some #includes 2011-01-31 16:03:10 +02:00
glob.h Add standard license headers to files. 2009-03-01 13:13:25 +00:00
macosx_finder_args.c osdep: tweak some #includes 2011-01-31 16:03:10 +02:00
macosx_finder_args.h osdep/macosx_finder_args.h: include required header m_config.h 2010-11-02 04:16:46 +02:00
mmap-os2.c osdep: tweak some #includes 2011-01-31 16:03:10 +02:00
mmap.h Add missing header #includes to fix 'make checkheaders'. 2008-03-07 20:38:21 +00:00
mmap_anon.c #include corresponding .h files in .c files. 2010-02-16 15:03:03 +00:00
mmap_anon.h Add standard license headers to files. 2009-03-01 13:13:25 +00:00
mplayer.exe.manifest Windows support: add a manifest file 2010-11-02 04:14:20 +02:00
mplayer.rc Windows support: add a manifest file 2010-11-02 04:14:20 +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
osdep.h 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h 2010-03-04 12:55:30 +00:00
priority.c build: cygwin: don't rely on _WIN32 being defined 2011-01-29 04:04:53 +02:00
priority.h cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
setenv.c Add standard license headers to files. 2009-03-01 13:13:25 +00:00
shmem.c #include corresponding .h files in .c files. 2010-02-16 15:03:03 +00:00
shmem.h Add standard license headers to files. 2009-03-01 13:13:25 +00:00
strsep.c osdep: tweak some #includes 2011-01-31 16:03:10 +02:00
strsep.h Add a proper header for our strsep implementation so strsep will 2010-01-17 15:08:31 +00:00
swab.c Add standard license headers to files. 2009-03-01 13:13:25 +00:00
timer-darwin.c osdep: tweak some #includes 2011-01-31 16:03:10 +02:00
timer-linux.c #include corresponding .h files in .c files. 2010-02-16 15:03:03 +00:00
timer-win2.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
timer.h Add missing 'void' to parameterless function declarations. 2009-05-04 17:35:26 +00:00
vsscanf.c Add standard license headers to files. 2009-03-01 13:13:25 +00:00