Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b49f12

Browse files
author
Victor Stinner
committed
(merge 3.2) Issue #12423: Fix os.abort() documentation
The Python signal handler for SIGABRT is not called on os.abort() (only if the signal is raised manually or sent by another process). Patch by Kamil Kisiel.
2 parents 2cded9c + 6e2e3b9 commit 2b49f12

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Doc/ACKS.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ [email protected]), and we'll be glad to correct the problem.
105105
* Robert Kern
106106
* Jim Kerr
107107
* Jan Kim
108+
* Kamil Kisiel
108109
* Greg Kochanski
109110
* Guido Kollerie
110111
* Peter A. Koren
@@ -142,7 +143,7 @@ [email protected]), and we'll be glad to correct the problem.
142143
* Ross Moore
143144
* Sjoerd Mullender
144145
* Dale Nagata
145-
* Michal Nowikowski
146+
* Michal Nowikowski
146147
* Ng Pheng Siong
147148
* Koray Oner
148149
* Tomas Oppelstrup

Doc/library/os.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,8 +2088,9 @@ to be ignored.
20882088

20892089
Generate a :const:`SIGABRT` signal to the current process. On Unix, the default
20902090
behavior is to produce a core dump; on Windows, the process immediately returns
2091-
an exit code of ``3``. Be aware that programs which use :func:`signal.signal`
2092-
to register a handler for :const:`SIGABRT` will behave differently.
2091+
an exit code of ``3``. Be aware that calling this function will not call the
2092+
Python signal handler registered for :const:`SIGABRT` with
2093+
:func:`signal.signal`.
20932094

20942095
Availability: Unix, Windows.
20952096

0 commit comments

Comments
 (0)