Skip to content

Commit

Permalink
Remove internal signal handlers before execing
Browse files Browse the repository at this point in the history
  • Loading branch information
magicant committed Nov 3, 2021
1 parent c2f3096 commit 9780a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yash-semantics/src/command_impl/simple_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ async fn execute_external_utility(

let subshell = env.run_in_subshell(move |mut env| {
Box::pin(async move {
// TODO Remove signal handlers not set by current traps
env.traps.disable_internal_handlers(&mut env.system).ok();

let envs = env.variables.env_c_strings();
let result = env.system.execve(path.as_c_str(), &args, &envs);
Expand Down

0 comments on commit 9780a78

Please sign in to comment.