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

Already on GitHub? Sign in to your account

sigint handler isn't working on OS X. #4

Closed
samrushing opened this Issue Dec 8, 2011 · 2 comments

Comments

Projects
None yet
2 participants
Owner

samrushing commented Dec 8, 2011

I'm guessing that the kqueue signal capture is failing for some reason?
If I call the sigterm handler manually it exits correctly.
It's possible that kevent() is not seeing the event, because when I attach with gdb after hitting ^C it is sitting in kevent doing nothing.

Contributor

ehuss commented Dec 8, 2011

Notice in signal_handler.py, someone added:

if UNAME == 'FreeBSD':

That seems like a bad idea.

Also, we may need to check if flags should include EV_ENABLE. Or is that implicit?

Owner

samrushing commented Dec 8, 2011

Good catch. Including 'Darwin' in that test fixes the problem.

@samrushing samrushing closed this Dec 8, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment