summaryrefslogtreecommitdiff
path: root/src/op_mode/show_disk_format.sh
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-02-17 15:25:54 -0600
committerJohn Estabrook <jestabro@vyos.io>2021-02-17 15:42:15 -0600
commit83bcd13775323bec35d018223029e9a8b13179c8 (patch)
tree9538f0a036fa7571e89adfbde91b126fcfb32fea /src/op_mode/show_disk_format.sh
parent4cdfb1f0be743371cfb75e428742b252be4ff64f (diff)
downloadvyos-1x-83bcd13775323bec35d018223029e9a8b13179c8.tar.gz
vyos-1x-83bcd13775323bec35d018223029e9a8b13179c8.zip
configsession: T3259: avoid deadlock when data fills stdout pipe
If the subprocess is producing enough data (in this case showConfig on a large config file), then the construction: p = subprocess.Popen(.., stdout=subprocess.PIPE, ..) p.wait() will deadlock with the subprocess waiting for data to be consumed, while the Python process waits for its termination. So consume data, then wait for termination.
Diffstat (limited to 'src/op_mode/show_disk_format.sh')
0 files changed, 0 insertions, 0 deletions