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

Kernel + LibC: Handle running processes in do_waitid()

This commit is contained in:
AnotherTest 2020-05-16 03:02:14 +04:30 committed by Andreas Kling
parent 9d54f21859
commit 8582a06899
3 changed files with 28 additions and 34 deletions

View file

@ -274,7 +274,8 @@ bool Thread::WaitBlocker::should_unblock(Thread& thread, time_t, long)
}
bool wait_finished = ((m_wait_options & WEXITED) && child_exited)
|| ((m_wait_options & WSTOPPED) && child_stopped);
|| ((m_wait_options & WSTOPPED) && child_stopped)
|| (m_wait_options & WNOHANG);
if (!wait_finished)
return IterationDecision::Continue;