mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
poll: fix interruptible sleep
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user