]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd: remove an else branch in exit_server_common()
authorRalph Boehme <slow@samba.org>
Sun, 25 Feb 2018 08:48:53 +0000 (09:48 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 10 Oct 2025 15:59:35 +0000 (15:59 +0000)
No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/server_exit.c

index ed399199b87bba4859229fceb457efa20fbb6ae9..1ae32dc5c53402ec3181b30b4d4dd3c61faba914 100644 (file)
@@ -226,12 +226,11 @@ static void exit_server_common(enum server_exit_reason how,
 
                /* Notreached. */
                exit(1);
-       } else {
-               DEBUG(3,("Server exit (%s)\n",
-                       (reason ? reason : "normal exit")));
-               if (am_parent) {
-                       pidfile_unlink(lp_pid_directory(), "smbd");
-               }
+       }
+
+       DBG_NOTICE("Server exit (%s)\n", reason ? reason : "normal exit");
+       if (am_parent) {
+               pidfile_unlink(lp_pid_directory(), "smbd");
        }
 
        exit(0);