-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Document most common signals #19245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document most common signals #19245
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<pedantic>
It will be "ignored" if the process is in uninterruptible sleep (under some definition of "ignored")</pedantic>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.