Always reset wait descriptor owner when awakening

This commit is contained in:
Mark
2020-07-05 18:55:15 +03:00
parent b6f29c2cd7
commit d7bc4e2f01
+2 -1
View File
@@ -34,10 +34,11 @@ int thread_wait_io(struct thread *t, struct io_notify *n) {
sched_unqueue(t, THREAD_WAITING);
n->owner = NULL;
// Check if we were interrupted during io wait
int r = thread_check_signal(t, 0);
if (r != 0) {
n->owner = NULL;
return r;
}
}