[issue38888] Popen should use pidfd_create to implement a non-busy wait
Роман Донченко
report at bugs.python.org
Thu Nov 21 16:43:43 EST 2019
New submission from Роман Донченко <dpb at corrigendum.ru>:
Popen.wait(timeout) is currently implemented on Unix-like systems using a busy wait, since the waitpid system call doesn't have a timeout argument.
On Linux, it's now possible to do better than that. You can create a PID file descriptor using pidfd_create and poll that descriptor with the specified timeout. Popen.wait should make use of that.
----------
components: Library (Lib)
messages: 357222
nosy: SpecLad
priority: normal
severity: normal
status: open
title: Popen should use pidfd_create to implement a non-busy wait
type: enhancement
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38888>
_______________________________________
More information about the Python-bugs-list
mailing list