Skip to content

Commit

Permalink
a fix for the change in signal mask introduced in rust-lang/rust#101077
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Heath committed Mar 1, 2023
1 parent 25d151f commit c901cbf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/core/src/os/process/exec/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ pub fn hook_command<X, I, K, V>(executable: X, env: I, ids: Option<(Uid, Gid)>)
with_user_and_group_information(&mut cmd, uid, gid);
}

unsafe {
use nix::sys::signal::{pthread_sigmask, SigSet, SigmaskHow};

This comment has been minimized.

Copy link
@mwrock

mwrock Mar 1, 2023

Contributor

You want to put this use up with the other use statements at the top.

cmd.pre_exec(|| {
let newset = SigSet::all();
pthread_sigmask(SigmaskHow::SIG_UNBLOCK, Some(&newset), None)?;
Ok(())
});
}

cmd
}

Expand Down

0 comments on commit c901cbf

Please sign in to comment.