Skip to content

Commit d28d112

Browse files
authored
[signal] Define SIGABRT as 22 instead of 6 on Windows (#15541)
1 parent c48ede8 commit d28d112

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/signal.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@ from typing_extensions import Never, TypeAlias
99
NSIG: int
1010

1111
class Signals(IntEnum):
12-
SIGABRT = 6
1312
SIGFPE = 8
1413
SIGILL = 4
1514
SIGINT = 2
1615
SIGSEGV = 11
1716
SIGTERM = 15
1817

1918
if sys.platform == "win32":
19+
SIGABRT = 22
2020
SIGBREAK = 21
2121
CTRL_C_EVENT = 0
2222
CTRL_BREAK_EVENT = 1
2323
else:
24+
SIGABRT = 6
2425
SIGALRM = 14
2526
SIGBUS = 7
2627
SIGCHLD = 17

0 commit comments

Comments
 (0)