summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-06-27 14:08:38 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-06-29 11:40:03 -0400
commit1821a0d507d5aadf725d4af4757819119c91cc68 (patch)
treee1793d0863820655dceaa8eb74fe87524b0a8e48 /src
parent76ab5d8de8ad137a2ee076639b6ebeb70b1f70f8 (diff)
downloadsssd-1821a0d507d5aadf725d4af4757819119c91cc68.tar.gz
sssd-1821a0d507d5aadf725d4af4757819119c91cc68.tar.xz
sssd-1821a0d507d5aadf725d4af4757819119c91cc68.zip
DEBUG: Log to syslog if we are unable to open a debug fd
Diffstat (limited to 'src')
-rw-r--r--src/util/debug.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/debug.c b/src/util/debug.c
index 7816bc41a..e57656d7f 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;
}