From d8d665495029bc8a102bdaf550ef618da64f36fe Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 5 Oct 2009 20:34:54 -0700 Subject: thread_spawn: fix timeout leading to worker death --- lib/rainbows/thread_spawn.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 -- cgit v1.2.3-24-ge0c7