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

handle sigterm. fix: #763 #772

Merged
merged 4 commits into from
Aug 3, 2016
Merged

handle sigterm. fix: #763 #772

merged 4 commits into from
Aug 3, 2016

Conversation

jung-kim
Copy link
Collaborator

Stop forever child process and exit on sig term.

fix: #763

child.on('exit', function (res) {
console.log('Stopped keeping ungit alive');
});

process.on('SIGTERM', function() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still needed?
You are currently handling the SIGTERM event in two places.

@jung-kim
Copy link
Collaborator Author

jung-kim commented Aug 2, 2016

@campersau thank you for pointing out my mistakes!

@jung-kim jung-kim merged commit 49b0879 into FredrikNoren:master Aug 3, 2016
@jung-kim jung-kim deleted the sigterm branch August 4, 2016 17:42
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.

Doesn't handle SIGTERM
2 participants