From 5a9ca3db032af5938e9709f3355a1f45b1e08d27 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 18 Jun 2009 11:45:57 +0200 Subject: Fix bug 4699: Remove pidfile on clean shutdown --- source3/winbindd/winbindd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/winbindd') 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); } -- cgit