Patch: Get more info when ctdb fails to set up pipe for child logging

Richard Sharpe realrichardsharpe at gmail.com
Tue Jun 6 20:04:40 UTC 2017


Hi folks,

This patch might be useful in ctdb:

diff --git a/ctdb/server/ctdb_logging.c b/ctdb/server/ctdb_logging.c
index 692df73..1337e18 100644
--- a/ctdb/server/ctdb_logging.c
+++ b/ctdb/server/ctdb_logging.c
@@ -209,7 +209,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;
        }

I can send it in a better format if it looks useful.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)



More information about the samba-technical mailing list