mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-24 11:21:34 +00: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
|
@ -72,6 +72,9 @@ pid_t waitpid(pid_t waitee, int* wstatus, int options)
|
|||
case CLD_STOPPED:
|
||||
*wstatus = siginfo.si_status << 8 | 0x7f;
|
||||
break;
|
||||
case CLD_CONTINUED:
|
||||
*wstatus = 0;
|
||||
return 0; // return 0 if running
|
||||
default:
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue