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

[ADDED] Trap for SIGTERM #625

Merged
merged 1 commit into from
Jul 13, 2018
Merged

[ADDED] Trap for SIGTERM #625

merged 1 commit into from
Jul 13, 2018

Conversation

kozlovic
Copy link
Member

The server was trapping only SIGINT to do a proper shutdown.
In Docker, however, the docker stop command sends SIGTERM. So
if we want the server to do proper shutdown, we need to trap
SIGTERM.

Resolves #624

Signed-off-by: Ivan Kozlovic ivan@synadia.com

The server was trapping only SIGINT to do a proper shutdown.
In Docker, however, the `docker stop` command sends SIGTERM. So
if we want the server to do proper shutdown, we need to trap
SIGTERM.

Resolves #624

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 91.909% when pulling fdd06f1 on add_sigterm_trap into 5c5e801 on master.

@kozlovic kozlovic merged commit 5452fec into master Jul 13, 2018
@kozlovic kozlovic deleted the add_sigterm_trap branch July 13, 2018 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants