diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-08-30 16:56:15 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-08-30 18:27:49 +0200 |
commit | 4897033a912d513be82268b20fe73190684960fe (patch) | |
tree | 2023800e7d0c180f35af6398e45868a87697b6cb | |
parent | c9e2f9778e9267348bdfa4bf2a8d950bcf5fbd50 (diff) |
In nslcd, log EPIPE only on debug level
See:
https://bugzilla.redhat.com/show_bug.cgi?id=1003011
-rw-r--r-- | nslcd/common.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nslcd/common.h b/nslcd/common.h index c848e36..393f695 100644 --- a/nslcd/common.h +++ b/nslcd/common.h @@ -44,7 +44,10 @@ stream */ #define ERROR_OUT_WRITEERROR(fp) \ - log_log(LOG_WARNING, "error writing to client: %s", strerror(errno)); \ + if (errno == EPIPE) \ + log_log(LOG_DEBUG, "error writing to client: %s", strerror(errno)); \ + else \ + log_log(LOG_WARNING, "error writing to client: %s", strerror(errno)); \ return -1; #define ERROR_OUT_READERROR(fp) \ |