From 1821a0d507d5aadf725d4af4757819119c91cc68 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 27 Jun 2012 14:08:38 -0400 Subject: DEBUG: Log to syslog if we are unable to open a debug fd --- src/util/debug.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/debug.c b/src/util/debug.c index 7816bc41..e57656d7 100644 --- a/src/util/debug.c +++ b/src/util/debug.c @@ -50,6 +50,11 @@ errno_t set_debug_file_from_fd(const int fd) if (dummy == NULL) { ret = errno; DEBUG(1, ("fdopen failed [%d][%s].\n", ret, strerror(ret))); + sss_log(SSS_LOG_ERR, + "Could not open debug file descriptor [%d]. " + "Debug messages will not be written to the file " + "for this child process [%s][%s]\n", + fd, debug_prg_name, strerror(ret)); return ret; } -- cgit