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:
parent
9d54f21859
commit
8582a06899
Notes:
sideshowbarker
2024-07-19 06:34:48 +09:00
Author: https://github.com/alimpfard
Commit: 8582a06899
Pull-request: https://github.com/SerenityOS/serenity/pull/2241
Reviewed-by: https://github.com/Dexesttp
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
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