mdwsetup.py (progoutput): Only read one byte to decide whether there is more.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 4 Oct 2019 15:22:15 +0000 (16:22 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 8 May 2020 11:30:13 +0000 (12:30 +0100)
commit514f1de64a582d3a183b853990484a2ac72f86a8
tree7c698f4843e07e6363c9c8b8a8d9a2adff72c73e
parentf3c13bfa1db49e33489169ac92153e7a7d1c3110
mdwsetup.py (progoutput): Only read one byte to decide whether there is more.

There's no point in slurping the entire output now that we're closing
the pipe /before/ trying to waitpid(2): the child will hit `SIGPIPE' (or
`EPIPE') rather than blocking on output.
mdwsetup.py