diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-17 02:56:28 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-17 02:56:28 +0000 |
commit | cc6342fec3e5d96d6a1afb89f52b8ca39ec00b3e (patch) | |
tree | 876d8d60e35996f8471b33e0c7b643ca1f252ab2 | |
parent | 05c0c57d5108b077544ec8d3ab1e3c9a7fbc9f78 (diff) | |
download | ruby-cc6342fec3e5d96d6a1afb89f52b8ca39ec00b3e.tar.gz |
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
-rw-r--r-- | thread_pthread.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |