mirror of https://github.com/mpv-player/mpv
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. |
||
---|---|---|
.. | ||
getch2-os2.c | ||
getch2-win.c | ||
getch2.c | ||
getch2.h | ||
gettimeofday.c | ||
glob-win.c | ||
glob.h | ||
macosx_finder_args.c | ||
macosx_finder_args.h | ||
mmap-os2.c | ||
mmap.h | ||
mmap_anon.c | ||
mmap_anon.h | ||
mplayer.exe.manifest | ||
mplayer.rc | ||
numcores.c | ||
numcores.h | ||
osdep.h | ||
priority.c | ||
priority.h | ||
setenv.c | ||
shmem.c | ||
shmem.h | ||
strsep.c | ||
strsep.h | ||
swab.c | ||
timer-darwin.c | ||
timer-linux.c | ||
timer-win2.c | ||
timer.h | ||
vsscanf.c |