Re: [PATCH] iotests.py: Do not wait() before communicate()

2020-07-03 Thread Kevin Wolf
Am 30.06.2020 um 10:37 hat Max Reitz geschrieben: > Waiting on a process for which we have a pipe will stall if the process > outputs more data than fits into the OS-provided buffer. We must use > communicate() before wait(), and in fact, communicate() perfectly > replaces wait() already. > > We

[PATCH] iotests.py: Do not wait() before communicate()

2020-06-30 Thread Max Reitz
Waiting on a process for which we have a pipe will stall if the process outputs more data than fits into the OS-provided buffer. We must use communicate() before wait(), and in fact, communicate() perfectly replaces wait() already. We have to drop the stderr=subprocess.STDOUT parameter from