Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup signal to trap SIGINT and gracefully stop server #1377

Merged
merged 1 commit into from Aug 16, 2017

Commits on Aug 5, 2017

  1. Setup signal to trap SIGINT and gracefully stop server

    This way, when you send `SIGINT` to a running a server, when running via
    `rails s`, a graceful shutdown/stop will be performed.
    
    Before this, not trapping `SIGINT` would mean that either `Rails::Server#start`
    or `::Rack::Server#start` would be trapping `SIGINT` and exiting the process.
    Shayon Mukherjee committed Aug 5, 2017
    Copy the full SHA
    d9a2358 View commit details
    Browse the repository at this point in the history