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

Skip to content

Commit 6e2e3b9

Browse files
author
Victor Stinner
committed
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.
1 parent f6cbdc2 commit 6e2e3b9

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
@@ -1582,8 +1582,9 @@ to be ignored.
15821582

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

15881589
Availability: Unix, Windows.
15891590

0 commit comments

Comments
 (0)