From: Motohiro KOSAKI Date: 2010-03-07T04:23:47+09:00 Subject: [ruby-core:28538] [Bug #2739] ruby 1.8.7 built with pthreads hangs under some circumstances Issue #2739 has been updated by Motohiro KOSAKI. Hm I think child process doesn't need to call rb_thread_stop_timer(). Can you please try following patch? diff --git a/eval.c b/eval.c index 55dbb8c..31e6a33 100644 --- a/eval.c +++ b/eval.c @@ -12343,7 +12343,6 @@ rb_thread_start_timer() safe_mutex_lock(&time_thread.lock); if (pthread_create(&time_thread.thread, 0, thread_timer, args) == 0) { thread_init = 1; - pthread_atfork(0, 0, rb_thread_stop_timer); pthread_cond_wait(&start, &time_thread.lock); } pthread_cleanup_pop(1); ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2739 ---------------------------------------- http://redmine.ruby-lang.org