Fix the reaper
git-svn-id: file:///home/svn/framework3/trunk@8753 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
5543e4551f
commit
b87f0ac796
|
@ -22,7 +22,7 @@ class SessionManager < Hash
|
||||||
self.sid_pool = 0
|
self.sid_pool = 0
|
||||||
self.reaper_thread = Thread.new do
|
self.reaper_thread = Thread.new do
|
||||||
while true
|
while true
|
||||||
select(nil, nil, nil, 0.5)
|
::Kernel.select(nil, nil, nil, 0.5)
|
||||||
each_value do |s|
|
each_value do |s|
|
||||||
if not s.alive?
|
if not s.alive?
|
||||||
deregister(s, "Died")
|
deregister(s, "Died")
|
||||||
|
|
Loading…
Reference in New Issue