Commit d8439a5
authored
Use
Using `poll()` on a Popen object will return `None` if the child process
has not terminated and that can cause trouble with the
`get_command_output()` function in the Docker building script. The
function assumes that `poll()` always returns the exit code of the child
process and compares it to 0 to check if the child process executed
successfully. If the child process has not terminated by the time
`poll()` is called, then the comparison will always be false and the
child process will appear to have failed.communicate() with Python subprocess (#795)1 parent 2592008 commit d8439a5
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
| |||
0 commit comments