# File lib/eventmachine.rb, line 255 def self.fork_reactor &block # This implementation is subject to change, especially if we clean up the relationship # of EM#run to @reactor_running. # Original patch by Aman Gupta. # Kernel.fork do if self.reactor_running? self.stop_event_loop self.release_machine @reactor_running = false end self.run block end end