Fix signal handlers after EINTR nanosleep.

This commit is contained in:
4lDO2
2025-04-17 01:04:34 +02:00
parent c25b4c67e1
commit 5dfc76dda8
3 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -742,7 +742,7 @@ impl Pal for Sys {
} else {
redox_rmtp = unsafe { redox_timespec::from(&*rmtp) };
}
match syscall::nanosleep(&redox_rqtp, &mut redox_rmtp) {
match redox_rt::sys::posix_nanosleep(&redox_rqtp, &mut redox_rmtp) {
Ok(_) => Ok(()),
Err(Error { errno: EINTR }) => {
unsafe {