mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 21:12:23 +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) {
|
while (1) {
|
||||||
char buf[128];
|
char buf[128];
|
||||||
bstr append = { buf, 0 };
|
bstr append = { buf, 0 };
|
||||||
|
Loading…
Reference in New Issue
Block a user