Skip to content

automatically shut down service after main function returns#2365

Open
mazunki wants to merge 4 commits intoincludeos:mainfrom
mazunki:improve-shutdown
Open

automatically shut down service after main function returns#2365
mazunki wants to merge 4 commits intoincludeos: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.

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