Skip to content

Commit

Permalink
Terminate after signal (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebaszm authored Dec 1, 2023
1 parent df3a4a1 commit 0d2047a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/WPEFramework/PluginHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ POP_WARNING()
fprintf(stdout, EXPAND_AND_QUOTE(APPLICATION_NAME) " completely stopped.\n");
fflush(stderr);
}

_atExitActive = false;

exit(0);
}

private:
Expand Down Expand Up @@ -330,7 +333,6 @@ POP_WARNING()
sigaction(SIGSEGV, &_originalSegmentationHandler, nullptr);
sigaction(SIGABRT, &_originalAbortHandler, nullptr);


ExitHandler::DumpMetadata();

if (_background) {
Expand All @@ -340,7 +342,7 @@ POP_WARNING()
fflush(stderr);
}

ExitHandler::StartShutdown();
raise(signo);
}
else if (signo == SIGUSR1) {
ExitHandler::DumpMetadata();
Expand Down

0 comments on commit 0d2047a

Please sign in to comment.