1
0
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:
wm4 2015-02-26 22:08:10 +01:00
parent f47beb1f07
commit 6e73b4dac7

View File

@ -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 };