mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
win32: remove lock file upon shutdown
Upon named shutdown, the lock file should not just be unlocked but also
removed.
(cherry picked from commit c506077da5)
This commit is contained in:
parent
2adc28712d
commit
8e18f02626
1 changed files with 2 additions and 2 deletions
|
|
@ -350,9 +350,9 @@ ns_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 */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue