mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Previously, if an exception would happen inside the `with` block, the error handler would wait indefinitely for the process to end. That would never happen, since the termination signal was never sent to named and the test would get stuck. Using the try-finally block ensures that the named process is always killed and any exception or errors will be handled gracefully.