Log the actual error returned when creating a pipe for client logging in CTDB fails...
authorRichard Sharpe <richard.sharpe@primarydata.com>
Tue, 6 Jun 2017 20:34:51 +0000 (13:34 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 7 Jun 2017 07:22:29 +0000 (09:22 +0200)
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

ctdb/server/ctdb_logging.c

index 4c3706301f0e5845cb9aaa9c12f68d3da80dbc1a..e7ca9b2758d4037050d29438a09f90f857edd124 100644 (file)
@@ -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;
        }