Skip to content

Commit 9cdb5f1

Browse files
committed
shutdown automatically when main() is defined
1 parent a5f5982 commit 9cdb5f1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/kernel/service_stub.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ void Service::start(const std::string& cmd)
8181
int exit_status = main(argc, argv);
8282
INFO("main","returned with status %d", exit_status);
8383
#endif
84+
85+
os::shutdown();
8486
}
8587

8688
__attribute__((weak))

0 commit comments

Comments
 (0)