From 6e73b4dac726588ed3737a6918c7629e263eae1b Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 26 Feb 2015 22:08:10 +0100 Subject: input: handle closed pipe correctly --- input/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input') 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 }; -- cgit v1.2.3