1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

On interrupt, wait for requests to finish

This commit is contained in:
Evan Phoenix 2011-12-02 16:45:44 -08:00
parent ea72a93e1c
commit 054da8f705

View file

@ -177,7 +177,9 @@ module Puma
begin
server.run.join
rescue Interrupt
log " - Shutting down..."
log " - Gracefully stopping, waiting for requests to finish"
server.stop(true)
log " - Goodbye!"
end
end
end