This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author FFY00
Recipients Alexander Overvoorde, FFY00
Date 2020-05-08.21:16:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588972608.47.0.713818148304.issue40550@roundup.psfhosted.org>
In-reply-to
Content
This is a simple time-of-check - time-of-action issue, which is why I suggested that it shouldn't be fixed. I was not aware send_signal did have this check, which tells us it is supposed to be suported(?). Anyway, to fix it we need to catch the exception and check for errno == 3 so that we can ignore it.

Optimally we would want to have an atomic operation here, but no such thing exists. There is still the very faint possibility that after your process exits a new process will take its id and we kill it instead.

We should keep the returncode check and just ignore the exception when errno == 3. This is the best option.
History
Date User Action Args
2020-05-08 21:16:48FFY00setrecipients: + FFY00, Alexander Overvoorde
2020-05-08 21:16:48FFY00setmessageid: <1588972608.47.0.713818148304.issue40550@roundup.psfhosted.org>
2020-05-08 21:16:48FFY00linkissue40550 messages
2020-05-08 21:16:47FFY00create