mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
SystemServer: Add support for multi-instance services
For this kind of services, there's no single PID of a running instance; there may be multiple, or no instances of the service running at any time. No keepalive functionality is available in this mode, since "alive" doesn't make sense for multi-instance services. At the moment, there's no way to actually create multiple instances of a service; this is going to be added in the next commit.
This commit is contained in:
parent
31b025fcfc
commit
ac4c2f890f
Notes:
sideshowbarker
2024-07-19 05:44:13 +09:00
Author: https://github.com/bugaevc
Commit: ac4c2f890f
Pull-request: https://github.com/SerenityOS/serenity/pull/2534
3 changed files with 21 additions and 9 deletions
|
@ -47,10 +47,10 @@ static void sigchld_handler(int)
|
|||
if (!pid)
|
||||
return;
|
||||
|
||||
dbg() << "Reaped child with pid " << pid;
|
||||
dbg() << "Reaped child with pid " << pid << ", exist status " << status;
|
||||
Service* service = Service::find_by_pid(pid);
|
||||
if (service == nullptr) {
|
||||
dbg() << "There was no service with this pid, what is going on?";
|
||||
// This can happen for multi-instance services.
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue