Commit c506077d authored by Michał Kępień's avatar Michał Kępień

win32: remove lock file upon shutdown

Upon named shutdown, the lock file should not just be unlocked but also
removed.
parent 9fceb376
......@@ -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 */
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment