[Python-checkins] cpython (merge 3.2 -> default): (merge 3.2) Issue #12423: Fix os.abort() documentation

victor.stinner python-checkins at python.org
Fri Jul 8 02:27:18 CEST 2011


http://hg.python.org/cpython/rev/e3c115ba8dc0
changeset:   71251:e3c115ba8dc0
parent:      71247:16cbd84de848
parent:      71250:4e83d8f6d496
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Fri Jul 08 02:27:06 2011 +0200
summary:
  (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.

files:
  Doc/ACKS.txt       |  3 ++-
  Doc/library/os.rst |  5 +++--
  2 files changed, 5 insertions(+), 3 deletions(-)


diff --git a/Doc/ACKS.txt b/Doc/ACKS.txt
--- a/Doc/ACKS.txt
+++ b/Doc/ACKS.txt
@@ -105,6 +105,7 @@
    * Robert Kern
    * Jim Kerr
    * Jan Kim
+   * Kamil Kisiel
    * Greg Kochanski
    * Guido Kollerie
    * Peter A. Koren
@@ -142,7 +143,7 @@
    * 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
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2088,8 +2088,9 @@
 
    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.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list