diff options
Diffstat (limited to 'src/pipeline/command.rs')
-rw-r--r-- | src/pipeline/command.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pipeline/command.rs b/src/pipeline/command.rs index 3a898d1..2c49cd3 100644 --- a/src/pipeline/command.rs +++ b/src/pipeline/command.rs @@ -125,6 +125,8 @@ impl Command { ); match inner { Inner::Binary(mut cmd) => { + // Safety: open, dup2, and close are async-signal-safe + // functions unsafe { cmd.pre_exec(pre_exec) }; Ok(Child::Binary(cmd.spawn().map_err(|e| { anyhow::anyhow!( @@ -135,6 +137,8 @@ impl Command { })?)) } Inner::Builtin(mut cmd) => { + // Safety: open, dup2, and close are async-signal-safe + // functions unsafe { cmd.pre_exec(pre_exec) }; Ok(Child::Builtin(cmd.spawn(env)?)) } |