Skip to content

Commit

Permalink
Fix awkward sentence in signal docs (#91508)
Browse files Browse the repository at this point in the history
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
  • Loading branch information
strugee and JelleZijlstra committed Apr 20, 2022
1 parent b6d5e3c commit 326ae71
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Doc/library/signal.rst
Expand Up @@ -711,10 +711,11 @@ case, wrap your entry point to catch this exception as follows::
if __name__ == '__main__':
main()

Do not set :const:`SIGPIPE`'s disposition to :const:`SIG_DFL`
in order to avoid :exc:`BrokenPipeError`. Doing that would cause
your program to exit unexpectedly also whenever any socket connection
is interrupted while your program is still writing to it.
Do not set :const:`SIGPIPE`'s disposition to :const:`SIG_DFL` in
order to avoid :exc:`BrokenPipeError`. Doing that would cause
your program to exit unexpectedly whenever any socket
connection is interrupted while your program is still writing to
it.

.. _handlers-and-exceptions:

Expand Down

0 comments on commit 326ae71

Please sign in to comment.