mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 04:51:52 +00:00
input: handle closed pipe correctly
This commit is contained in:
parent
f47beb1f07
commit
6e73b4dac7
@ -582,7 +582,7 @@ static void *client_thread(void *p)
|
||||
}
|
||||
}
|
||||
|
||||
if (fds[1].revents & POLLIN) {
|
||||
if (fds[1].revents & (POLLIN | POLLHUP)) {
|
||||
while (1) {
|
||||
char buf[128];
|
||||
bstr append = { buf, 0 };
|
||||
|
Loading…
Reference in New Issue
Block a user