(2011/06/28 19:55), Eric Wong wrote:
> Eric Wong <normalperson / yhbt.net> wrote:
>> 5d09nl looks good otherwise and I'm running with my above change
>> on bogomips.org.  I will report back if I have any problems
>> (or if you notice bogomips.org stops responding :)
> 
> 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?

Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 32266)
+++ thread_pthread.c	(working copy)
@@ -1188,7 +1188,7 @@
 	     *       This pass is cleaning phase.  It is too rare case
              *       to generate problem, so we remains it in TODO.
 	     */
-	    close_communication_pipe();
+	    // close_communication_pipe();
 	}
     }
     return stopped;

-- 
// SASADA Koichi at atdot dot net