diff options
| author | Sascha Silbe <silbe@linux.vnet.ibm.com> | 2016-09-06 22:05:44 +0200 |
|---|---|---|
| committer | Fam Zheng <famz@redhat.com> | 2016-09-08 19:56:34 +0800 |
| commit | c977257045fdb90f98b92b9e08daa8ace378650b (patch) | |
| tree | ebb40f6a6f3caf62d2cd27e511ac6f743c909652 /tests/test-string-input-visitor.c | |
| parent | 9af4c174a38c345e36f8320f8bb7de64661bb18a (diff) | |
| download | focaccia-qemu-c977257045fdb90f98b92b9e08daa8ace378650b.tar.gz focaccia-qemu-c977257045fdb90f98b92b9e08daa8ace378650b.zip | |
docker.py: don't hang on large docker output
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. Signed-off-by: Sascha Silbe <silbe@linux.vnet.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.vnet.ibm.com> Message-Id: <1473192351-601-2-git-send-email-silbe@linux.vnet.ibm.com> Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'tests/test-string-input-visitor.c')
0 files changed, 0 insertions, 0 deletions