bpo-28795: Signal documentation: Fix misleading statement. (GH-13121) · python/cpython@e85ef7a

Original file line numberDiff line numberDiff line change

@@ -16,7 +16,8 @@ The :func:`signal.signal` function allows defining custom handlers to be

1616

executed when a signal is received. A small number of default handlers are

1717

installed: :const:`SIGPIPE` is ignored (so write errors on pipes and sockets

1818

can be reported as ordinary Python exceptions) and :const:`SIGINT` is

19-

translated into a :exc:`KeyboardInterrupt` exception.

19+

translated into a :exc:`KeyboardInterrupt` exception if the parent process

20+

has not changed it.

2021
2122

A handler for a particular signal, once set, remains installed until it is

2223

explicitly reset (Python emulates the BSD style interface regardless of the