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/smbd/server.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/smbd') 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 -- cgit