# File lib/slave.rb, line 211 def close_unused_sockets_after_forking begin to_delete = [] begin FDS.each do |oid, fds| next if oid == @object_id begin IO.for_fd(fds.first).close rescue Exception => e STDERR.puts "#{ e.message } (#{ e.class })\n#{ e.backtrace.join 10.chr }" ensure to_delete << oid end end ensure FDS.ex{ to_delete.each{|oid| FDS.delete oid rescue 42} } end GC.start rescue Exception => e 42 end end