Skip to content

Commit

Permalink
CRT: print message with pending changes only
Browse files Browse the repository at this point in the history
  • Loading branch information
eworm-de authored and BenBE committed Jan 15, 2024
1 parent 8e40d68 commit 49c1351
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRT.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,9 @@ ATTR_NORETURN
static void CRT_handleSIGTERM(int sgn) {
CRT_done();

if (!CRT_crashSettings->changed)
_exit(0);

const char* signal_str = strsignal(sgn);
if (!signal_str)
signal_str = "unknown reason";
Expand Down

0 comments on commit 49c1351

Please sign in to comment.