Document most common signals#19245
Document most common signals#19245vstinner merged 3 commits intopython:masterfrom vstinner:signals_doc
Conversation
Document individual signals (only the most common signals): description, default action, availability.
|
@gpshead, @serhiy-storchaka, @pablogsal, @pitrou, @methane: Would you mind to review this doc change? Does it sound a good idea to you to document the "default action"? The exact behavior might depend on the platform, but IMO it's better to have a little bit inaccurate documentation than no documentation at all. I can create an issue if someone considers that it's needed (I added |
|
I am uneasy documenting the "default" action as you mentioned it can be platform-dependent and is easy to diverge in the future. Also, these default actions are not linked to the signal themselves, is just that the kernel default action on unregistered signals is to kill the process. There is no semantic meaning for instance between
I think is better to not say anything than to say something incorrect ;) |
Only SIGINT and SIGPIPE have portable default action.
Ok, I remove the default action, except for SIGINT and SIGPIPE: Python has a portable behavior for these two signals, since we install our own signal handler. |
|
Is it ok to backport such documentation enhancement to Python 3.7 and 3.8? |
I am +1 with the backport |
👌 |
|
|
||
| Kill signal. | ||
|
|
||
| It cannot be caught, blocked, or ignored. |
There was a problem hiding this comment.
<pedantic> It will be "ignored" if the process is in uninterruptible sleep (under some definition of "ignored")</pedantic>
pablogsal
left a comment
There was a problem hiding this comment.
LGTM!
Thanks for this useful addition! 🎉
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
|
Sorry, @vstinner, I could not cleanly backport this to |
|
GH-19257 is a backport of this pull request to the 3.8 branch. |
Document individual signals (only the most common signals):
description, default action, availability.