summaryrefslogtreecommitdiffstats
path: root/lib/thread.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-05-31 19:30:53 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-05-31 19:30:53 +0200
commit8c88ac94fa8b847643eb03cbce2faa3e4d16d6a3 (patch)
treefd935a7ac456f3576c54a43c452d1d5f6093f35c /lib/thread.c
parentlib: missed AWAKEN in r/w thread scheduler (diff)
downloadfrr-8c88ac94fa8b847643eb03cbce2faa3e4d16d6a3.tar.xz
frr-8c88ac94fa8b847643eb03cbce2faa3e4d16d6a3.zip
lib: make writing end of pipe nonblocking
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/thread.c b/lib/thread.c
index 0188ae6c0..848e39e1a 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;