summaryrefslogtreecommitdiff
path: root/source3/winbindd
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/winbindd
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/winbindd')
-rw-r--r--source3/winbindd/winbindd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index 0a73c0ebc6..d617fe1f0b 100644
--- a/source3/winbindd/winbindd.c
+++ b/source3/winbindd/winbindd.c
@@ -173,6 +173,10 @@ static void terminate(bool is_parent)
}
#endif
+ if (is_parent) {
+ pidfile_unlink();
+ }
+
exit(0);
}