mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
SystemServer: Implement lazy spawning
For services explicitly configured as lazy, SystemServer will now listen on the socket and only spawn the service once a client attempts to connect to the socket.
This commit is contained in:
parent
ab98969403
commit
52b0bd06a8
4 changed files with 40 additions and 4 deletions
|
@ -95,9 +95,9 @@ int main(int, char**)
|
|||
for (auto name : config->groups())
|
||||
services.append(Service::construct(*config, name));
|
||||
|
||||
// After we've set them all up, spawn them!
|
||||
// After we've set them all up, activate them!
|
||||
for (auto& service : services)
|
||||
service->spawn();
|
||||
service->activate();
|
||||
|
||||
// This won't return if we're in test mode.
|
||||
check_for_test_mode();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue