mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:57:35 +00:00
SystemServer: Handle waitpid
's status correctly
We used to call `did_exit()` directly with the status returned from `waitpid` but the function expected an exit code. We now use several of `wait`-related macros to deduce the correct information.
This commit is contained in:
parent
2c5a062c8f
commit
521ad55a61
2 changed files with 8 additions and 4 deletions
|
@ -22,7 +22,8 @@ public:
|
|||
|
||||
bool is_enabled() const;
|
||||
ErrorOr<void> activate();
|
||||
ErrorOr<void> did_exit(int exit_code);
|
||||
// Note: This is a `status` as in POSIX's wait syscall, not an exit-code.
|
||||
ErrorOr<void> did_exit(int status);
|
||||
|
||||
static Service* find_by_pid(pid_t);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue