From: SASADA Koichi Date: 2011-06-18T21:50:39+09:00 Subject: [ruby-core:37219] Re: [Request for Comment] avoid timer thread (2011/06/18 21:14), KOSAKI Motohiro wrote: >> > void >> > rb_thread_wakeup_timer_thread(void) >> > { >> > + if (getpid() != timer_thread_pid) { > getpid() return *process* id. timer thread and other threads will > get the same process id. > This condition checks the race between parent process and forked child process. This may be intentional. I'll fix with another way to avoid such race. -- // SASADA Koichi at atdot dot net