diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-05-31 17:30:53 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-05-31 17:30:53 +0000 |
| commit | 8c88ac94fa8b847643eb03cbce2faa3e4d16d6a3 (patch) | |
| tree | fd935a7ac456f3576c54a43c452d1d5f6093f35c /lib/thread.c | |
| parent | a772d6eae61ccb090de8dda5df43e2770879baa0 (diff) | |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
