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 14, 2024
1 parent 337b16d commit 0533eea
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 0533eea

Please sign in to comment.