diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-05-07 08:55:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-07 08:55:39 -0700 |
commit | 721729fca4fab9fd11861844880b3f3780015ae0 (patch) | |
tree | 881f1bd86c16d7df1e90a9634320f3c2693a2b03 /Doc | |
parent | 7e200e0763f5b71c199aaf98bd5588f291585619 (diff) | |
download | cpython-git-721729fca4fab9fd11861844880b3f3780015ae0.tar.gz |
bpo-28795: Signal documentation: Fix misleading statement. (GH-13121)
(cherry picked from commit e85ef7a7eacdef2f43e6bf2e67f335100e7ef2da)
Co-authored-by: Julien Palard <julien@palard.fr>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/signal.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst index 148a59c710..b6716eea95 100644 --- a/Doc/library/signal.rst +++ b/Doc/library/signal.rst @@ -16,7 +16,8 @@ The :func:`signal.signal` function allows defining custom handlers to be executed when a signal is received. A small number of default handlers are installed: :const:`SIGPIPE` is ignored (so write errors on pipes and sockets can be reported as ordinary Python exceptions) and :const:`SIGINT` is -translated into a :exc:`KeyboardInterrupt` exception. +translated into a :exc:`KeyboardInterrupt` exception if the parent process +has not changed it. A handler for a particular signal, once set, remains installed until it is explicitly reset (Python emulates the BSD style interface regardless of the |