diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-27 14:08:38 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-29 11:40:03 -0400 |
commit | 1821a0d507d5aadf725d4af4757819119c91cc68 (patch) | |
tree | e1793d0863820655dceaa8eb74fe87524b0a8e48 | |
parent | 76ab5d8de8ad137a2ee076639b6ebeb70b1f70f8 (diff) | |
download | sssd-1821a0d507d5aadf725d4af4757819119c91cc68.tar.gz sssd-1821a0d507d5aadf725d4af4757819119c91cc68.tar.xz sssd-1821a0d507d5aadf725d4af4757819119c91cc68.zip |
DEBUG: Log to syslog if we are unable to open a debug fd
-rw-r--r-- | src/util/debug.c | 5 |
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; } |