1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +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

@ -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();
}