From b833d3a3dde1040690c0808f2b9e65342cce2350 Mon Sep 17 00:00:00 2001 From: normal Date: Sun, 17 Jun 2018 02:56:28 +0000 Subject: 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 --- thread_pthread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'thread_pthread.c') diff --git a/thread_pthread.c b/thread_pthread.c index 069c50ed7a..20d0b598cf 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; } } -- cgit v1.2.3