]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Clean up the Lua objects before exiting 13667/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 Dec 2023 13:07:05 +0000 (14:07 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 Dec 2023 13:09:25 +0000 (14:09 +0100)
commitbae38b2a658752b9e481f203653031313e8125ff
tree483a3d1664152135d7e74a115072828a78b9fef1
parent79cbb02d5d242c308236ee0c2fd99eca783c7f6d
dnsdist: Clean up the Lua objects before exiting

When code coverage is enabled, we try to call `exit()` instead of our
usual use of `_exit()` to get more accurate coverage. It does however
trigger a race condition between the destruction of Lua objects and
the Lua context(s) they belong to, so we try to explicitly clean up
the objects before calling `exit()`.
pdns/dnsdist.cc