summaryrefslogtreecommitdiff
path: root/python/vyos/utils/process.py
diff options
context:
space:
mode:
authorYuxiang Zhu <vfreex@gmail.com>2023-08-28 08:08:00 +0800
committerYuxiang Zhu <vfreex@gmail.com>2023-08-28 08:08:00 +0800
commit6b5e0821bbf6f36d3c304e1c05cf12f143b3892d (patch)
tree458e32a185217dd23215b66d4edeb30e747ef6de /python/vyos/utils/process.py
parentd3edda22573fb9c9d1c469f14f5a3eec9ca512a5 (diff)
downloadvyos-1x-6b5e0821bbf6f36d3c304e1c05cf12f143b3892d.tar.gz
vyos-1x-6b5e0821bbf6f36d3c304e1c05cf12f143b3892d.zip
T5519: Fix `vyos.utils.process.call` hangs
See https://vyos.dev/T5519 for more information.
Diffstat (limited to 'python/vyos/utils/process.py')
-rw-r--r--python/vyos/utils/process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/utils/process.py b/python/vyos/utils/process.py
index 911547995..e09c7d86d 100644
--- a/python/vyos/utils/process.py
+++ b/python/vyos/utils/process.py
@@ -179,7 +179,7 @@ def rc_cmd(command, flag='', shell=None, input=None, timeout=None, env=None,
return code, out
def call(command, flag='', shell=None, input=None, timeout=None, env=None,
- stdout=PIPE, stderr=PIPE, decode='utf-8'):
+ stdout=None, stderr=None, decode='utf-8'):
"""
A wrapper around popen, which print the stdout and
will return the error code of a command