poll: fix interruptible sleep

This commit is contained in:
Matheus
2024-04-14 12:06:08 -03:00
parent c3f508b994
commit f19f784694
3 changed files with 10 additions and 6 deletions
+1 -3
View File
@@ -34,10 +34,8 @@ syscallret_t syscall_nanosleep(context_t *, timespec_t *utime, timespec_t *remai
ret.errno = sched_yield();
if (ret.errno) {
// XXX interruptible wait might break things
if (ret.errno)
timer_remove(_cpu()->timer, &sleepentry);
}
sched_targetcpu(NULL);