summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 };