Kernel: Handle Thread::State::Dead in sys$waitid()

I'm not sure how it happened, but it looks like I caught a thread in
this state so let's just handle it the same way we do Dying.
This commit is contained in:
Andreas Kling 2020-09-16 15:26:37 +02:00
parent 6212f57755
commit d1445cee6d
Notes: sideshowbarker 2024-07-19 02:23:16 +09:00

View file

@ -86,6 +86,7 @@ KResultOr<siginfo_t> Process::do_waitid(idtype_t idtype, int id, int options)
case Thread::State::Runnable:
case Thread::State::Blocked:
case Thread::State::Dying:
case Thread::State::Dead:
case Thread::State::Queued:
siginfo.si_code = CLD_CONTINUED;
break;