RapidFuzz icon indicating copy to clipboard operation
RapidFuzz copied to clipboard

Handle Ctrl+C signal

Open maxbachmann opened this issue 2 years ago • 0 comments

Since some of the processor functions can run for a long time. However it is currently not possible to quit by pressing Ctrl+C. Instead it is required to manually kill the process. The implementation should periodically acquire the GIL and check _PyOS_InterruptOccurred, to see whether a KeyboardError occured.

It would be fine to check this e.g. only once per second to keep the performance impact low, but the application should eventually stop after Ctrl+C is pressed.

maxbachmann avatar Sep 24 '21 08:09 maxbachmann