Skip to content

Commit

Permalink
agent-spawner: redirect output from shell hooks
Browse files Browse the repository at this point in the history
There's otherwise a risk of receiving SIGPIPE or other termination
signal only because we have no output file to write to.
  • Loading branch information
praiskup committed Mar 15, 2024
1 parent 853ab09 commit 8ee6697
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resalloc_agent_spawner/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,6 @@ def subproces_kwargs(self, data):
"AGENT_SPAWNER_RESOURCE_DATA": str(data),
},
"shell": True,
"stdout": subprocess.DEVNULL,
"stderr": subprocess.DEVNULL,
}

0 comments on commit 8ee6697

Please sign in to comment.