diff options
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index f1137ec550..be10a190cf 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1137,6 +1137,7 @@ rb_thread_create_timer_thread(void) { int oflags; #if defined(O_NONBLOCK) + oflags = fcntl(timer_thread_pipe[1], F_GETFL); oflags |= O_NONBLOCK; fcntl(timer_thread_pipe[1], F_SETFL, oflags); #endif /* defined(O_NONBLOCK) */ |