Fix signal restart logic.

This commit is contained in:
4lDO2
2024-07-18 16:47:49 +02:00
parent 6dd9332af2
commit 1067295d65
+1 -2
View File
@@ -14,12 +14,11 @@ fn wrapper<T>(restart: bool, mut f: impl FnMut() -> Result<T>) -> Result<T> {
if let Err(err) = res
&& err == Error::new(EINTR)
&& restart
{
unsafe {
manually_enter_trampoline();
}
if unsafe { (*rt_sigarea.arch.get()).last_sig_was_restart } {
if restart && unsafe { (*rt_sigarea.arch.get()).last_sig_was_restart } {
continue;
}
}