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

Add SIGINT handler #130

Merged
merged 1 commit into from
Sep 2, 2015
Merged

Add SIGINT handler #130

merged 1 commit into from
Sep 2, 2015

Conversation

jonmorehouse
Copy link
Contributor

This adds in a SIGINT handler, to ensure that ctrl-c, is caught in the
nsq.run() loop.

@mreiferson this is a follow up from our conversation, let me know if there's anything else you'd like to see documented and/or anything else that needs to be done to get this pushed through.

This adds in a SIGINT handler, to ensure that ctrl-c, is caught in the
nsq.run() loop.
@mreiferson
Copy link
Member

👍

@jehiah do you recall any reason why we didn't add this initially? (I couldn't remember)

@ploxiln
Copy link
Member

ploxiln commented Aug 31, 2015

One possible reason I can think of is so there's an easy way to "terminate faster", but still let python clean itself up and maybe print a backtrace. That might not be a great reason though. Maybe it was just an oversight.

jehiah added a commit that referenced this pull request Sep 2, 2015
@jehiah jehiah merged commit 15bb986 into nsqio:master Sep 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants