From 8c88ac94fa8b847643eb03cbce2faa3e4d16d6a3 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 31 May 2017 17:30:53 +0000 Subject: [PATCH] lib: make writing end of pipe nonblocking Signed-off-by: Quentin Young --- lib/thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/thread.c b/lib/thread.c index 0188ae6c0b..848e39e1ae 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -387,6 +387,7 @@ thread_master_create (void) rv->owner = pthread_self(); pipe (rv->io_pipe); set_nonblocking (rv->io_pipe[0]); + set_nonblocking (rv->io_pipe[1]); rv->handler.pfdsize = rv->fd_limit; rv->handler.pfdcount = 0;