From 313dac0437424dc76e744dacfb83ff57a1e7c843 Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Mon, 22 Apr 2024 08:44:13 +0800 Subject: [PATCH] test: grab the SIGNAL_MTX lock in test_sigaction (#2381) --- test/sys/test_signal.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/test/sys/test_signal.rs b/test/sys/test_signal.rs index bf607497be..7494b71234 100644 --- a/test/sys/test_signal.rs +++ b/test/sys/test_signal.rs @@ -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(