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/nmbd/nmbd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/nmbd') 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); } -- cgit