Skip to content

Conversation

@Ma5onic
Copy link

@Ma5onic Ma5onic commented Aug 15, 2022

This PR is to implement the workaround that I found for windows users to resolve open issue #1 by providing a workaround until a permanent solution is found.

Improvements can be made by using a different library to chose the timeout length.
For more info on why this library doesn't work with Windows, see last paragraph of signal.signal(signalnum, handler) documentation: https://docs.python.org/3.9/library/signal.html#signal.signal

On Windows, signal() can only be called with SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, SIGTERM, or SIGBREAK. A ValueError will be raised in any other case. Note that not all systems define the same set of signal names; an AttributeError will be raised if a signal name is not defined as SIG* module level constant.

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

Successfully merging this pull request may close these issues.

1 participant