diff options
author | wm4 <wm4@nowhere> | 2015-02-26 22:08:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-26 22:09:01 +0100 |
commit | 6e73b4dac726588ed3737a6918c7629e263eae1b (patch) | |
tree | 4f20cfed50fd410c3306df99b7978b4f7cc47cc1 /input/ipc.c | |
parent | f47beb1f07f2dff56202d1d6772de75f3c09b780 (diff) | |
download | mpv-6e73b4dac726588ed3737a6918c7629e263eae1b.tar.bz2 mpv-6e73b4dac726588ed3737a6918c7629e263eae1b.tar.xz |
input: handle closed pipe correctly
Diffstat (limited to 'input/ipc.c')
-rw-r--r-- | input/ipc.c | 2 |
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 }; |