From 21d18c39e858344ac79491bc0f7ec748b2790a4a Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 17 Jun 2023 15:49:13 +0200 Subject: Correct secure.py --- glances/secure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3