diff options
author | Joe Guo <joeg@catalyst.net.nz> | 2017-09-15 15:31:34 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-10-19 05:33:10 +0200 |
commit | 8ed3cac9e558c60ab0b7e32133cea5e156ef9549 (patch) | |
tree | 607670581491c2d78e0880a96216395c4bd8e4fa /callcatcher-exceptions.grep | |
parent | ea0cd977a3d1966f00861dc01728fe8b95b43f59 (diff) | |
download | samba-8ed3cac9e558c60ab0b7e32133cea5e156ef9549.tar.gz |
python: add a failed test to show Popen deadlock
`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>
Diffstat (limited to 'callcatcher-exceptions.grep')
0 files changed, 0 insertions, 0 deletions