From 01d0ec4a704cd1e59b954e6c38b8d097ff548b00 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 23 May 2025 03:57:09 +0000 Subject: [PATCH] s4:prefork: raise debug level of normal exits REF: https://lists.samba.org/archive/samba/2025-February/250946.html Signed-off-by: Douglas Bagnall Reviewed-by: Jennifer Sutton Reviewed-by: Rowland Penny --- source4/samba/process_prefork.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source4/samba/process_prefork.c b/source4/samba/process_prefork.c index 24d2de65842..d5ca9a3ce2c 100644 --- a/source4/samba/process_prefork.c +++ b/source4/samba/process_prefork.c @@ -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)) { -- 2.47.2