lib: make writing end of pipe nonblocking

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Quentin Young 2017-05-31 17:30:53 +00:00
parent a772d6eae6
commit 8c88ac94fa

View File

@ -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;