From c506077da54e92ddb6220bd118ff817a9248c4e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Fri, 19 Apr 2019 10:59:41 +0200 Subject: [PATCH] win32: remove lock file upon shutdown Upon named shutdown, the lock file should not just be unlocked but also removed. --- bin/named/win32/os.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/named/win32/os.c b/bin/named/win32/os.c index f302338c66..ec6da58c94 100644 --- a/bin/named/win32/os.c +++ b/bin/named/win32/os.c @@ -348,9 +348,9 @@ named_os_shutdown(void) { if (lockfilefd != -1) { (void) UnlockFile((HANDLE) _get_osfhandle(lockfilefd), 0, 0, 0, 1); - close(lockfilefd); - lockfilefd = -1; } + cleanup_lockfile(); + ntservice_shutdown(); /* This MUST be the last thing done */ }