summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-18 11:45:57 +0200
committerJeremy Allison <jra@samba.org>2009-06-18 16:17:57 -0700
commit5a9ca3db032af5938e9709f3355a1f45b1e08d27 (patch)
tree5f12936d01b8c62531b07f307fdfee51ea65bcd3 /source3/nmbd
parent31885822ae0744582fb145f541bd4cfc590173d6 (diff)
downloadsamba-5a9ca3db032af5938e9709f3355a1f45b1e08d27.tar.gz
samba-5a9ca3db032af5938e9709f3355a1f45b1e08d27.tar.bz2
samba-5a9ca3db032af5938e9709f3355a1f45b1e08d27.zip
Fix bug 4699: Remove pidfile on clean shutdown
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 903dc36d53..848baeff3d 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -82,6 +82,8 @@ static void terminate(void)
/* If there was an async dns child - kill it. */
kill_async_dns_child();
+ pidfile_unlink();
+
exit(0);
}