From 8ee6697b6e76c23f55d56ced8429a66f40cf9fa0 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 14 Mar 2024 21:57:45 +0100 Subject: [PATCH] agent-spawner: redirect output from shell hooks There's otherwise a risk of receiving SIGPIPE or other termination signal only because we have no output file to write to. --- resalloc_agent_spawner/helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resalloc_agent_spawner/helpers.py b/resalloc_agent_spawner/helpers.py index 1e25cae..57165d4 100644 --- a/resalloc_agent_spawner/helpers.py +++ b/resalloc_agent_spawner/helpers.py @@ -111,4 +111,6 @@ def subproces_kwargs(self, data): "AGENT_SPAWNER_RESOURCE_DATA": str(data), }, "shell": True, + "stdout": subprocess.DEVNULL, + "stderr": subprocess.DEVNULL, }