Skip to content

Commit

Permalink
test: grab the SIGNAL_MTX lock in test_sigaction (#2381)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC authored Apr 22, 2024
1 parent 7ffbd3c commit 313dac0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/sys/test_signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ fn test_from_and_into_iterator() {
#[test]
#[cfg(not(target_os = "redox"))]
fn test_sigaction() {
let _m = crate::SIGNAL_MTX.lock();
thread::spawn(|| {
extern "C" fn test_sigaction_handler(_: libc::c_int) {}
extern "C" fn test_sigaction_action(
Expand Down

0 comments on commit 313dac0

Please sign in to comment.