# File lib/merb-core/rack/adapter/abstract.rb, line 93 def self.spawn_worker(port) worker_pid = Kernel.fork # If we have a worker_pid, we're in the parent. if worker_pid.nil? # Seed the random number generator Kernel.srand # Restart the run_later worker, unless we're in the parent or it's alive. Merb::Worker.restart unless Merb::Worker.alive? # Spawn the worker start_at_port(port, @opts) throw(:new_worker) end @pids[port] = worker_pid $WORKERS = @pids.values end