From 5a3e2bc9da9f5076eb5a31c922ae6c8352aa2b2c Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 16 Oct 2023 14:49:47 +0200 Subject: [PATCH] Only explictly dump coverage data if we're heading for _exit() --- pdns/recursordist/rec_channel_rec.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } } -- 2.47.2