summaryrefslogtreecommitdiff
path: root/source3/smbd
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/smbd
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/smbd')
-rw-r--r--source3/smbd/server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index d3ce4b6f2d..5b474d84b4 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -854,6 +854,9 @@ static void exit_server_common(enum server_exit_reason how,
} else {
DEBUG(3,("Server exit (%s)\n",
(reason ? reason : "normal exit")));
+ if (am_parent) {
+ pidfile_unlink();
+ }
}
/* if we had any open SMB connections when we exited then we