1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09: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
Notes: sideshowbarker 2024-07-19 06:34:48 +09:00
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;