Check for proper SIGINT return code

They finally got https://bugs.python.org/issue1054041 in Python 3.8
windows_support
Tyler Goodlet 2019-10-15 23:22:48 -04:00
parent da4796749f
commit 7e8b7091cb
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ if platform.system() == 'Windows':
else: else:
_KILL_SIGNAL = signal.SIGKILL _KILL_SIGNAL = signal.SIGKILL
_INT_SIGNAL = signal.SIGINT _INT_SIGNAL = signal.SIGINT
_INT_RETURN_CODE = 1 _INT_RETURN_CODE = 1 if sys.version_info < (3, 8) else -signal.SIGINT.value
_PROC_SPAWN_WAIT = 0.6 if sys.version_info < (3, 7) else 0.4 _PROC_SPAWN_WAIT = 0.6 if sys.version_info < (3, 7) else 0.4