From: Eric Wong Date: 2011-06-29T04:06:03+09:00 Subject: [ruby-core:37642] Re: [Request for Comment] avoid timer thread SASADA Koichi wrote: > (2011/06/28 19:55), Eric Wong wrote: > > Eric Wong wrote: > > I hit a race condition with invalid FD during restarts/exits and needed > > the following patch: > > > > http://bogomips.org/ruby.git/commit/?h=timer-thread-exit-race&id=9108cfab0c > > How about to skip closing a pipe? Could you try it? I still get one segfault, but it's on an EventMachine test... I don't get any segfault with my patch. I think rb_bug_errno() is unsafe to call inside both thread_timer() and rb_thread_wakeup_timer_thread() functions and it's putting me on the wrong path while debugging. -- Eric Wong