mpv/osdep
NRK 2e7fcc5a2a terminal-unix: better error detection logic
the reason for checking `EBADF|EINVAL` specifically is unknown. but it's
clearly not working as intended since it can cause issues like #11795.

instead of checking for "bad errors" check for known "good errors" where
we might not want to break out. this includes:

* EINTR: which can happen if read() is interrupted by some signal.
* EAGAIN: which happens if a non-blocking fd would block. `tty_in` is
  _not_ non-blocking, so EAGAIN should never occur here. but it's added
  just in case that changes in the future.

Fixes: https://github.com/mpv-player/mpv/issues/11795
Closes: https://github.com/mpv-player/mpv/pull/11805
2023-07-08 09:03:06 +02:00
..
android
macos options: transition options from OPT_FLAG to OPT_BOOL 2023-02-21 17:15:17 +00:00
win32
apple_utils.c osdep: move cfstr<->cstr conversions to a new apple_utils.c file 2023-06-25 11:01:58 +02:00
apple_utils.h osdep: move cfstr<->cstr conversions to a new apple_utils.c file 2023-06-25 11:01:58 +02:00
atomic.h
compiler.h osdep: add MP_FALLTHROUGH 2023-02-02 14:23:02 +00:00
endian.h
getpid.h
glob-win.c
io.c osdep/io: add void to mp_penviron 2023-02-02 14:23:02 +00:00
io.h
language-apple.c osdep: add mp_get_user_langs 2023-06-25 11:01:58 +02:00
language-posix.c osdep: add mp_get_user_langs 2023-06-25 11:01:58 +02:00
language-win.c osdep: add mp_get_user_langs 2023-06-25 11:01:58 +02:00
macOS_swift_bridge.h
macosx_application.h options: transition options from OPT_FLAG to OPT_BOOL 2023-02-21 17:15:17 +00:00
macosx_application.m options: transition options from OPT_FLAG to OPT_BOOL 2023-02-21 17:15:17 +00:00
macosx_application_objc.h
macosx_compat.h
macosx_events.h
macosx_events.m macos: add support for F13-F20 keys 2022-09-02 14:05:46 +02:00
macosx_events_objc.h
macosx_menubar.h
macosx_menubar.m
macosx_menubar_objc.h
macosx_touchbar.h
macosx_touchbar.m
macosx_versions.h
main-fn-cocoa.c
main-fn-unix.c
main-fn-win.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
main-fn.h
mpv.exe.manifest
mpv.rc
path-darwin.c osdep: separate out macos paths from path-unix.c 2023-05-09 20:37:17 +00:00
path-macosx.m
path-unix.c player: use XDG_CACHE_HOME by default 2023-05-09 20:37:17 +00:00
path-uwp.c
path-win.c
path.h player: use XDG_CACHE_HOME by default 2023-05-09 20:37:17 +00:00
polldev.c osdep: remove erroneous POLLERR emulation 2023-06-29 13:17:56 +02:00
polldev.h osdep: remove erroneous POLLERR emulation 2023-06-29 13:17:56 +02:00
semaphore.h
semaphore_osx.c
strnlen.h
subprocess-dummy.c
subprocess-posix.c
subprocess-win.c
subprocess.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
subprocess.h
terminal-dummy.c
terminal-unix.c terminal-unix: better error detection logic 2023-07-08 09:03:06 +02:00
terminal-win.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
terminal.h osdep/terminal.h: Rename screen buffer controls 2022-12-20 10:26:53 +01:00
threads.c
threads.h
timer-darwin.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
timer-linux.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
timer-win2.c
timer.c
timer.h
w32_keyboard.c w32: fix typo in F23 mapping 2022-09-03 08:46:42 -04:00
w32_keyboard.h
win32-console-wrapper.c
windows_utils.c
windows_utils.h