File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 11:meth: `subprocess.Popen.wait `: when ``timeout `` is not ``None ``, an efficient
2- event-driven mechanism now waits for process termination, if available:
3-
4- - Linux ≥= 5.3 uses :func: `os.pidfd_open ` + :func: `select.poll `
5- - macOS and other BSD variants use :func: `select.kqueue `
6- - Windows keeps using ``WaitForSingleObject `` (unchanged)
7-
8- If none of these mechanisms are available, the function falls back to the
9- traditional busy loop (non-blocking call and short sleeps).
10-
11- Patch by Giampaolo Rodola.
2+ event-driven mechanism now waits for process termination, if available. Linux
3+ ≥= 5.3 uses :func: `os.pidfd_open ` + :func: `select.poll `. macOS and other BSD
4+ variants use :func: `select.kqueue ` + ``KQ_FILTER_PROC `` + ``KQ_NOTE_EXIT ``.
5+ Windows keeps using ``WaitForSingleObject `` (unchanged) If none of these
6+ mechanisms are available, the function falls back to the traditional busy loop
7+ (non-blocking call and short sleeps). Patch by Giampaolo Rodola.
You can’t perform that action at this time.
0 commit comments