We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a101406 commit 452f8c4Copy full SHA for 452f8c4
1 file changed
Doc/whatsnew/3.15.rst
@@ -736,6 +736,20 @@ ssl
736
737
(Contributed by Ron Frederick in :gh:`138252`.)
738
739
+subprocess
740
+----------
741
+
742
+* :meth:`subprocess.Popen.wait`: when ``timeout`` is not ``None``, an efficient
743
+ event-driven mechanism now waits for process termination, if available:
744
745
+ - Linux ≥5.3 uses :func:`os.pidfd_open` + :func:`select.poll`
746
+ - macOS and other BSD variants use :func:`select.kqueue` + ``KQ_FILTER_PROC``
747
+ + ``KQ_NOTE_EXIT``
748
+ - Windows keep using ``WaitForSingleObject`` (unchanged)
749
750
+ If none of these mechanisms are available, the function falls back to the
751
+ traditional busy loop (non-blocking call and short sleeps).
752
+ (Contributed by Giampaolo Rodola in :gh:`83069`).
753
754
sys
755
---
0 commit comments