Skip to content

Commit c901cbf

Browse files
author
Jason Heath
committed
a fix for the change in signal mask introduced in rust-lang/rust#101077
1 parent 25d151f commit c901cbf

File tree

1 file changed

+9
-0
lines changed
  • components/core/src/os/process/exec

1 file changed

+9
-0
lines changed

components/core/src/os/process/exec/unix.rs

+9
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ pub fn hook_command<X, I, K, V>(executable: X, env: I, ids: Option<(Uid, Gid)>)
3737
with_user_and_group_information(&mut cmd, uid, gid);
3838
}
3939

40+
unsafe {
41+
use nix::sys::signal::{pthread_sigmask, SigSet, SigmaskHow};
42+
cmd.pre_exec(|| {
43+
let newset = SigSet::all();
44+
pthread_sigmask(SigmaskHow::SIG_UNBLOCK, Some(&newset), None)?;
45+
Ok(())
46+
});
47+
}
48+
4049
cmd
4150
}
4251

0 commit comments

Comments
 (0)