summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-17 02:56:28 (GMT)
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-17 02:56:28 (GMT)
commitcc6342fec3e5d96d6a1afb89f52b8ca39ec00b3e (patch)
tree876d8d60e35996f8471b33e0c7b643ca1f252ab2 /thread_pthread.c
parent05c0c57d5108b077544ec8d3ab1e3c9a7fbc9f78 (diff)
thread_pthread.c: fix non-sleepy timer thread build
I guess everybody has poll() and fcntl() nowadays, as the non-sleepy timer thread build has been broken for years, now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 069c50e..20d0b59 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1608,9 +1608,10 @@ rb_thread_create_timer_thread(void)
#endif
return;
}
-
+#if USE_SLEEPY_TIMER_THREAD
/* validate pipe on this process */
timer_thread_pipe.owner_process = getpid();
+#endif
timer_thread.created = 1;
}
}