about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-05 20:34:54 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-05 20:34:54 -0700
commitd8d665495029bc8a102bdaf550ef618da64f36fe (patch)
tree482555d3086a379bf35e8016c13c771de6590ed0 /lib
parent09535c1bd412bd66f93723c2c1aa7aacc2e091c3 (diff)
downloadrainbows-d8d665495029bc8a102bdaf550ef618da64f36fe.tar.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/rainbows/thread_spawn.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rainbows/thread_spawn.rb b/lib/rainbows/thread_spawn.rb
index af05476..5d7e68e 100644
--- a/lib/rainbows/thread_spawn.rb
+++ b/lib/rainbows/thread_spawn.rb
@@ -28,6 +28,7 @@ module Rainbows
 
       while alive && master_pid == Process.ppid
         ret = begin
+          alive.chmod(nr += 1)
           IO.select(LISTENERS, nil, nil, timeout/2.0) or next
         rescue Errno::EINTR
           retry