Skip to content

Commit 529ca34

Browse files
committed
refactor: Minor fix for messages on termination
1 parent 258a2f6 commit 529ca34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/common/app/src/app.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ void handleSignal(int signal) {
3232

3333
//-------------------------------------------------------------------------------------------------
3434
[[noreturn]] void handleTermination() {
35+
(void)fputs("\nTerminated\n", stderr);
3536
if (std::current_exception() != nullptr) {
3637
grape::Exception::print();
3738
} else {
38-
(void)fputs("\nTerminated\n", stderr);
3939
(void)fputs("\nBacktrace:\n", stderr);
4040
auto idx = 0U;
4141
const auto strace = grape::utils::StackTrace::current();
@@ -177,7 +177,7 @@ auto ok() -> bool {
177177
if (not s_init_flag.test()) {
178178
panic<Exception>("Not initialised. Call init() first");
179179
}
180-
return (not s_exit_flag.test()) and grape::ipc::ok();
180+
return grape::ipc::ok();
181181
}
182182

183183
//-------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)