From: Gary Lockyer Date: Mon, 18 Sep 2017 01:02:13 +0000 (+1200) Subject: process_standard: Do not log at level 2 every time a child exits X-Git-Tag: tevent-0.9.34~174 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e027871b0d96b59d2ec60d5d21e4490f1e2d73cd;p=thirdparty%2Fsamba.git process_standard: Do not log at level 2 every time a child exits Signed-off-by: Gary Lockyer Reviewed-by: Andrew Bartlett Reviewed-by: Garming Sam --- diff --git a/source4/smbd/process_standard.c b/source4/smbd/process_standard.c index a17a1ec3b06..6d3432918ba 100644 --- a/source4/smbd/process_standard.c +++ b/source4/smbd/process_standard.c @@ -148,8 +148,10 @@ static void standard_child_pipe_handler(struct tevent_context *ev, } if (WIFEXITED(status)) { status = WEXITSTATUS(status); - DEBUG(2, ("Child %d (%s) exited with status %d\n", - (int)state->pid, state->name, status)); + if (status != 0) { + DBG_ERR("Child %d (%s) exited with status %d\n", + (int)state->pid, state->name, status); + } } else if (WIFSIGNALED(status)) { status = WTERMSIG(status); DEBUG(0, ("Child %d (%s) terminated with signal %d\n",