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

Call Python signal handler #103

Open
jdemeyer opened this issue Jan 17, 2019 · 0 comments
Open

Call Python signal handler #103

jdemeyer opened this issue Jan 17, 2019 · 0 comments

Comments

@jdemeyer
Copy link
Collaborator

Currently, we are hardcoding what happens when cysignals catches a signal. For SIGINT for example, a KeyboardInterrupt is raised. Instead, we could install a Python-level signal handler and then call that.

We could then also monkey-patch signal.signal to set only the Python-level handler and not the OS handler. Then users could use signal.signal as usual and everything would magically work (despite cysignals handling the signal).

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

No branches or pull requests

1 participant