Message382397
On Linux, a pidfd file descriptor can be created with os.pidfd_open() (added to Python 3.9). It would avoid even more race conditions. The best would be to request a pidfd file descriptor directly when we spawn the process which is possible on recent Linux kernel versions.
> we should probably document it clearly in Popen.send_signal() and all of its callers that these functions might reap the child.
Feel free to propose a PR to document the behavior.
I'm not sure of what you mean by send_signal() which "reaps" the child process.
See also bpo-40550.
Anyway, this issue and bpo-40550 are closed. I suggest to open a new issue to enhance the documentation. |
|
Date |
User |
Action |
Args |
2020-12-03 09:42:54 | vstinner | set | recipients:
+ vstinner, giampaolo.rodola, njs, SpecLad, oconnor663 |
2020-12-03 09:42:54 | vstinner | set | messageid: <1606988574.7.0.626676984683.issue38630@roundup.psfhosted.org> |
2020-12-03 09:42:54 | vstinner | link | issue38630 messages |
2020-12-03 09:42:54 | vstinner | create | |
|