sleep: use stdlib instead of libc::usleep

Part of #12380
This commit is contained in:
Daniel Rainer
2026-01-25 16:17:27 +01:00
committed by Johannes Altmanninger
parent e41f2f6588
commit 43513d3fca

View File

@@ -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);