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:
parent
9d54f21859
commit
8582a06899
3 changed files with 28 additions and 34 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue