mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix awkward sentence in signal docs (GH-91508)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 326ae71f1d
)
Co-authored-by: AJ Jordan <alex@strugee.net>
This commit is contained in:
parent
6cf86fc9c1
commit
3fa9191cfc
1 changed files with 5 additions and 4 deletions
|
@ -676,10 +676,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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue