1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

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

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;