Skip to content

Commit 2cfcd0d

Browse files
not-matthiasart049
authored andcommitted
fix: use bash to ensure correct behavior across systems
See COD-843 for more information.
1 parent 4fdeebc commit 2cfcd0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/run/runner/wall_time/executor.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ impl Executor for WallTimeExecutor {
5151
run_data: &RunData,
5252
_mongo_tracer: &Option<MongoTracer>,
5353
) -> Result<()> {
54-
let mut cmd = Command::new("sh");
54+
// IMPORTANT: Don't use `sh` here! We will use this pid to send signals to the
55+
// spawned child process which won't work if we use a different shell.
56+
let mut cmd = Command::new("bash");
5557

5658
cmd.envs(get_base_injected_env(
5759
RunnerMode::Walltime,

0 commit comments

Comments
 (0)