diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2017-09-18 13:02:13 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-10-19 05:33:10 +0200 |
commit | e027871b0d96b59d2ec60d5d21e4490f1e2d73cd (patch) | |
tree | 91b0ffd5b8f06262aaab0b88da1eb4e136ec66b9 /source4/smbd | |
parent | 08402526704c6d586febadf401959bc3d8661836 (diff) | |
download | samba-e027871b0d96b59d2ec60d5d21e4490f1e2d73cd.tar.gz |
process_standard: Do not log at level 2 every time a child exits
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'source4/smbd')
-rw-r--r-- | source4/smbd/process_standard.c | 6 |
1 files changed, 4 insertions, 2 deletions
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", |