diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-07-08 02:14:55 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-07-08 02:14:55 +0200 |
commit | 8703be94b197ca7fdec8270705bbfefae232ee5b (patch) | |
tree | b51607de7b34b218918f3329d8c55f7f5a40a648 | |
parent | ba8b3a2ca7a43684cf67b174a4b245b8ba596a5c (diff) | |
download | cpython-git-8703be94b197ca7fdec8270705bbfefae232ee5b.tar.gz |
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.
-rw-r--r-- | Doc/ACKS.txt | 3 | ||||
-rw-r--r-- | Doc/library/os.rst | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Doc/ACKS.txt b/Doc/ACKS.txt index 2aa031607e..58896b0e79 100644 --- a/Doc/ACKS.txt +++ b/Doc/ACKS.txt @@ -103,6 +103,7 @@ docs@python.org), and we'll be glad to correct the problem. * Robert Kern * Jim Kerr * Jan Kim + * Kamil Kisiel * Greg Kochanski * Guido Kollerie * Peter A. Koren @@ -139,7 +140,7 @@ docs@python.org), and we'll be glad to correct the problem. * Ross Moore * Sjoerd Mullender * Dale Nagata - * Michal Nowikowski + * Michal Nowikowski * Ng Pheng Siong * Koray Oner * Tomas Oppelstrup diff --git a/Doc/library/os.rst b/Doc/library/os.rst index c2ea1be951..c6e32f66a3 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -1666,8 +1666,9 @@ to be ignored. 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 - an exit code of ``3``. Be aware that programs which use :func:`signal.signal` - to register a handler for :const:`SIGABRT` will behave differently. + an exit code of ``3``. Be aware that calling this function will not call the + Python signal handler registered for :const:`SIGABRT` with + :func:`signal.signal`. Availability: Unix, Windows. |