Re: [Qemu-devel] [PATCH 1/3] docker.py: don't hang on large docker output

2016-08-19 Thread Janosch Frank
On 08/18/2016 10:12 PM, Sascha Silbe wrote: > Unlike Popen.communicate(), subprocess.call() doesn't read from the > stdout file descriptor. If the child process produces more output than > fits into the pipe buffer, it will block indefinitely. > > If we don't intend to consume the output, just sen

[Qemu-devel] [PATCH 1/3] docker.py: don't hang on large docker output

2016-08-18 Thread Sascha Silbe
Unlike Popen.communicate(), subprocess.call() doesn't read from the stdout file descriptor. If the child process produces more output than fits into the pipe buffer, it will block indefinitely. If we don't intend to consume the output, just send it straight to /dev/null to avoid this issue. Signe