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

Ctrl-C does not abort when C extension is running under python #12

Closed
manodeep opened this issue Jan 18, 2016 · 0 comments
Closed

Ctrl-C does not abort when C extension is running under python #12

manodeep opened this issue Jan 18, 2016 · 0 comments
Assignees
Milestone

Comments

@manodeep
Copy link
Owner

Seems that if the C function is running in the main python thread, then it is cumbersome to capture Ctrl-C. Easiest work-around might be spawn two python threads and run the calculations in the background thread while the main thread continues to run. If a KeyBoardInterrupt (or some other exception) is raised, then the main thread can send a SIGINT to the C function.

@manodeep manodeep added this to the v1.2 milestone Jan 18, 2016
@manodeep manodeep modified the milestones: v1.2, v2.0 Apr 9, 2016
@manodeep manodeep self-assigned this Jul 31, 2016
manodeep added a commit that referenced this issue Aug 30, 2016
@manodeep manodeep closed this as completed Sep 5, 2016
manodeep added a commit that referenced this issue May 13, 2017
manodeep added a commit that referenced this issue May 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant