Skip to content

automatically shut down service after main function returns#2365

Open
mazunki wants to merge 3 commits into
includeos:mainfrom
mazunki:improve-shutdown
Open

automatically shut down service after main function returns#2365
mazunki wants to merge 3 commits into
includeos:mainfrom
mazunki:improve-shutdown

Conversation

@mazunki
Copy link
Copy Markdown
Contributor

@mazunki mazunki commented Apr 8, 2026

Builds and tests succesfully on top of #2363 due to tests.

This PR addresses a point in #2364 where the README advertises that the following program is a minimal valid program:

#include <os>
int main() {
  std::println("Hello");
}

Before, this program would leave the kernel hanging, without shutting down.

If Service::start() is defined, on the other hand, this responsibility remains on the service.

@mazunki mazunki force-pushed the improve-shutdown branch from 379c219 to 60a929f Compare May 12, 2026 13:06
@mazunki
Copy link
Copy Markdown
Contributor Author

mazunki commented May 12, 2026

rebased to sync with main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant