Commit 6e2e3b9e authored by Victor Stinner's avatar Victor Stinner

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.
parent f6cbdc22
...@@ -105,6 +105,7 @@ docs@python.org), and we'll be glad to correct the problem. ...@@ -105,6 +105,7 @@ docs@python.org), and we'll be glad to correct the problem.
* Robert Kern * Robert Kern
* Jim Kerr * Jim Kerr
* Jan Kim * Jan Kim
* Kamil Kisiel
* Greg Kochanski * Greg Kochanski
* Guido Kollerie * Guido Kollerie
* Peter A. Koren * Peter A. Koren
...@@ -142,7 +143,7 @@ docs@python.org), and we'll be glad to correct the problem. ...@@ -142,7 +143,7 @@ docs@python.org), and we'll be glad to correct the problem.
* Ross Moore * Ross Moore
* Sjoerd Mullender * Sjoerd Mullender
* Dale Nagata * Dale Nagata
* Michal Nowikowski * Michal Nowikowski
* Ng Pheng Siong * Ng Pheng Siong
* Koray Oner * Koray Oner
* Tomas Oppelstrup * Tomas Oppelstrup
......
...@@ -1582,8 +1582,9 @@ to be ignored. ...@@ -1582,8 +1582,9 @@ to be ignored.
Generate a :const:`SIGABRT` signal to the current process. On Unix, the default Generate a :const:`SIGABRT` signal to the current process. On Unix, the default
behavior is to produce a core dump; on Windows, the process immediately returns behavior is to produce a core dump; on Windows, the process immediately returns
an exit code of ``3``. Be aware that programs which use :func:`signal.signal` an exit code of ``3``. Be aware that calling this function will not call the
to register a handler for :const:`SIGABRT` will behave differently. Python signal handler registered for :const:`SIGABRT` with
:func:`signal.signal`.
Availability: Unix, Windows. Availability: Unix, Windows.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment