summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2023-06-17 15:49:13 +0200
committernicolargo <nicolas@nicolargo.com>2023-06-17 15:49:13 +0200
commit21d18c39e858344ac79491bc0f7ec748b2790a4a (patch)
tree72ca4395ad87865987661fd2b0379d05e66e3fa1
parent65124d75a066e30f6cfbd5fe16d21ed34901cd75 (diff)
Correct secure.py
-rw-r--r--glances/secure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glances/secure.py b/glances/secure.py
index 6a97037f..2eb671d8 100644
--- a/glances/secure.py
+++ b/glances/secure.py
@@ -54,7 +54,7 @@ def __secure_popen(cmd):
sub_cmd_split = [_[1:-1] if (_[0] == _[-1] == '"') or (_[0] == _[-1] == '\'') else _ for _ in tmp_split]
p = Popen(sub_cmd_split, shell=False, stdin=sub_cmd_stdin, stdout=PIPE, stderr=PIPE)
if p_last is not None:
- # Allow p_last to receive a SIGPIPE if p exits.
+ p_last.wait()
p_last.stdout.close()
p_last = p
sub_cmd_stdin = p.stdout