diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/server.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |