mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
[signal] Define SIGABRT as 22 instead of 6 on Windows (#15541)
This commit is contained in:
+2
-1
@@ -9,7 +9,6 @@ from typing_extensions import Never, TypeAlias
|
||||
NSIG: int
|
||||
|
||||
class Signals(IntEnum):
|
||||
SIGABRT = 6
|
||||
SIGFPE = 8
|
||||
SIGILL = 4
|
||||
SIGINT = 2
|
||||
@@ -17,10 +16,12 @@ class Signals(IntEnum):
|
||||
SIGTERM = 15
|
||||
|
||||
if sys.platform == "win32":
|
||||
SIGABRT = 22
|
||||
SIGBREAK = 21
|
||||
CTRL_C_EVENT = 0
|
||||
CTRL_BREAK_EVENT = 1
|
||||
else:
|
||||
SIGABRT = 6
|
||||
SIGALRM = 14
|
||||
SIGBUS = 7
|
||||
SIGCHLD = 17
|
||||
|
||||
Reference in New Issue
Block a user