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

Leaderboard B - Windows Support (workaround) #19

Open
wants to merge 3 commits into
base: leaderboard_B
Choose a base branch
from

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