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

@mazunkimazunki commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

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>intmain() {
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

Copy link
Copy Markdown
ContributorAuthor

rebased to sync with main

@mazunki

Copy link
Copy Markdown
ContributorAuthor

Re-rebased and tested. :)

Sign up for freeto 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

@mazunki