summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/gen_output.py
AgeCommit message (Collapse)AuthorFilesLines
2018-12-14PY3: change shebang to python3 in source4/scripting/bin dirJoe Guo1-1/+1
Samba default python is 3 now. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org>
2017-10-19python: add a failed test to show Popen deadlockJoe Guo1-0/+53
`Popen.wait()` will deadlock when using stdout=PIPE and/or stderr=PIPE and the child process generates large output to a pipe such that it blocks waiting for the OS pipe buffer to accept more data. Use communicate() to avoid that. This patch is commited to show the issue, a fix patch will come later. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>