]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:prefork: raise debug level of normal exits
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 23 May 2025 03:57:09 +0000 (03:57 +0000)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 5 Jun 2025 23:06:37 +0000 (23:06 +0000)
REF: https://lists.samba.org/archive/samba/2025-February/250946.html

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
Reviewed-by: Rowland Penny <rpenny@samba.org>
source4/samba/process_prefork.c

index 24d2de658422b096b0075d52d2a2227105c1d985..d5ca9a3ce2cdfd839b7b7dea502b61a3b25d9019 100644 (file)
@@ -627,9 +627,12 @@ static void prefork_child_pipe_handler(struct tevent_context *ev,
                rc_inuse = prefork_restart(ev, rc);
        } else if (WIFEXITED(status)) {
                status = WEXITSTATUS(status);
-               DBG_ERR("%s: Parent %d, Child %d exited with status %d\n",
-                       rc->service_name, getpid(), pid,  status);
-               if (status != 0) {
+               if (status == 0) {
+                       DBG_WARNING("%s: Parent %d, Child %d exited with status 0\n",
+                                   rc->service_name, getpid(), pid);
+               } else {
+                       DBG_ERR("%s: Parent %d, Child %d exited with status %d\n",
+                               rc->service_name, getpid(), pid,  status);
                        rc_inuse = prefork_restart(ev, rc);
                }
        } else if (WIFSIGNALED(status)) {