mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
Log the actual error returned when creating a pipe for client logging in CTDB fails. Helps with debugging issues.
Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jun 7 09:22:29 CEST 2017 on sn-devel-144
This commit is contained in:
parent
d3c4c1e263
commit
103f3a3cbe
@ -169,7 +169,8 @@ struct ctdb_log_state *ctdb_vfork_with_logging(TALLOC_CTX *mem_ctx,
|
||||
log->logfn_private = logfn_private;
|
||||
|
||||
if (pipe(p) != 0) {
|
||||
DEBUG(DEBUG_ERR, (__location__ " Failed to setup pipe for child logging\n"));
|
||||
DEBUG(DEBUG_ERR, (__location__ " Failed to setup pipe for child logging:"
|
||||
" %s\n", strerror(errno)));
|
||||
goto free_log;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user