From 43513d3fca4431f5fdc8b3dec904ada16bba8fb3 Mon Sep 17 00:00:00 2001 From: Daniel Rainer Date: Sun, 25 Jan 2026 16:17:27 +0100 Subject: [PATCH] sleep: use stdlib instead of `libc::usleep` Part of #12380 --- src/universal_notifier/test_helpers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/universal_notifier/test_helpers.rs b/src/universal_notifier/test_helpers.rs index d6e196174..45a8d83da 100644 --- a/src/universal_notifier/test_helpers.rs +++ b/src/universal_notifier/test_helpers.rs @@ -51,7 +51,7 @@ pub fn test_notifiers(notifiers: &[&dyn UniversalNotifier], fish_variables_path: // notifyd requires a round trip to the notifyd server, which means we have to wait a // little bit to receive it. In practice 40 ms seems to be enough. - unsafe { libc::usleep(40000) }; + std::thread::sleep(std::time::Duration::from_millis(40)); for (idx2, &n2) in notifiers.iter().enumerate() { let mut polled = poll_notifier(n2);