1
0
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:
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) { while (1) {
char buf[128]; char buf[128];
bstr append = { buf, 0 }; bstr append = { buf, 0 };