class Puma::Cluster

def spawn_worker(idx, master)

Other tags:
    Version: - 5.0.0
def spawn_worker(idx, master)
  @config.run_hooks(:before_worker_fork, idx, @log_writer)
  pid = fork { worker(idx, master) }
  if !pid
    log "! Complete inability to spawn new workers detected"
    log "! Seppuku is the only choice."
    exit! 1
  end
  @config.run_hooks(:after_worker_fork, idx, @log_writer)
  pid
end