Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return proper exit code for TERM signal
Attempt at returning the proper exit code (128+15) when TERM signal is sent to the server, for both single and clustered mode. The changes are achieved by restoring signal from within the trap and accordingly killing the process using TERM event. Note: For clustered mode, now that we restore and return the proper exit code, it means, every worker would also return 143 as exit code for INT (ctrl + c) signal, earlier it was 0. Which I believe is ok, because technically a TERM is being sent to the workers, [here](https://github.com/puma/puma/blob/master/lib/puma/cluster.rb#L56). Happy to update/revert on any concerns :).
- Loading branch information