Commit 0eebd6d
committed
Avoid deadlock in the
Python `subprocess.Popen.wait` deadlocks when using `stdout=subprocess.PIPE`,
and the child process generates enough output to a pipe such that it blocks
waiting for the OS pipe buffer to accept more data.
See https://docs.python.org/3/library/subprocess.html#subprocess.Popen.wait.
Spotted while trying to compile Xen `4.11`.ls_parse.py script1 parent 88e3145 commit 0eebd6d
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | | - | |
384 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
| 394 | + | |
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| |||
0 commit comments