summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-26 22:08:10 +0100
committerwm4 <wm4@nowhere>2015-02-26 22:09:01 +0100
commit6e73b4dac726588ed3737a6918c7629e263eae1b (patch)
tree4f20cfed50fd410c3306df99b7978b4f7cc47cc1 /input
parentf47beb1f07f2dff56202d1d6772de75f3c09b780 (diff)
downloadmpv-6e73b4dac726588ed3737a6918c7629e263eae1b.tar.bz2
mpv-6e73b4dac726588ed3737a6918c7629e263eae1b.tar.xz
input: handle closed pipe correctly
Diffstat (limited to 'input')
-rw-r--r--input/ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input/ipc.c b/input/ipc.c
index e983a74c08..f1caeeec7a 100644
--- a/input/ipc.c
+++ b/input/ipc.c
@@ -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 };