mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
c1a98f8f22
* Prevent server from starting if worker receives TERM signal If a worker receives a `TERM` signal before the server has started, prevent it from starting at all by clearing `restart_server`. * Send TERM to fork_worker child processes in Cluster#wait_workers When `fork_worker` is used, the call to `Process.wait` in `wait_workers` returns `ECHILD` for forked workers. Add a call to `w.term` in the rescue clause to match the behavior when `fork_worker` is not used, ensuring workers shut down properly. * Add test_command_ignored_before_run Unit test clarifying behavior of commands sent before Server#run is called. |
||
---|---|---|
.. | ||
worker.rb | ||
worker_handle.rb |