From: Otto Moerbeek Date: Mon, 16 Oct 2023 12:49:47 +0000 (+0200) Subject: Only explictly dump coverage data if we're heading for _exit() X-Git-Tag: rec-5.0.0-alpha2~1^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a3e2bc9da9f5076eb5a31c922ae6c8352aa2b2c;p=thirdparty%2Fpdns.git Only explictly dump coverage data if we're heading for _exit() --- diff --git a/pdns/recursordist/rec_channel_rec.cc b/pdns/recursordist/rec_channel_rec.cc index bbff8289a2..3d6dfc1901 100644 --- a/pdns/recursordist/rec_channel_rec.cc +++ b/pdns/recursordist/rec_channel_rec.cc @@ -1591,12 +1591,11 @@ void doExitGeneric(bool nicely) unlink(g_pidfname.c_str()); // we can at least try.. } - pdns::coverage::dumpCoverageData(); - if (nicely) { RecursorControlChannel::stop = true; } else { + pdns::coverage::dumpCoverageData(); _exit(1); } }