summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-geneve.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-02-17 15:25:54 -0600
committerJohn Estabrook <jestabro@vyos.io>2021-02-18 14:30:37 -0600
commitc0bc1782f3c92033aa1224e220c8147cd031a23e (patch)
tree9b310f3b14673669d4bea51340011769bc53ca5e /src/conf_mode/interfaces-geneve.py
parent8d41bc6f721979780e03a0d0d22c53c0e41b54ad (diff)
downloadvyos-1x-c0bc1782f3c92033aa1224e220c8147cd031a23e.tar.gz
vyos-1x-c0bc1782f3c92033aa1224e220c8147cd031a23e.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. (cherry picked from commit 83bcd13775323bec35d018223029e9a8b13179c8)
Diffstat (limited to 'src/conf_mode/interfaces-geneve.py')
0 files changed, 0 insertions, 0 deletions