diff options
author | Volker Lendecke <vl@samba.org> | 2009-06-18 11:45:57 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-06-18 16:17:57 -0700 |
commit | 5a9ca3db032af5938e9709f3355a1f45b1e08d27 (patch) | |
tree | 5f12936d01b8c62531b07f307fdfee51ea65bcd3 /source3/winbindd | |
parent | 31885822ae0744582fb145f541bd4cfc590173d6 (diff) | |
download | samba-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.c | 4 |
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); } |