summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/dnsmasq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dnsmasq.c b/src/dnsmasq.c
index c98fda2..cc3a6a4 100755
--- a/src/dnsmasq.c
+++ b/src/dnsmasq.c
@@ -110,6 +110,7 @@ void closeUnwantedFileDescriptors() {
if (fstat(i, &stat_buf) != 0) {
if (errno == EBADF) continue;
+ if (errno == EACCES) continue; // Lessen the log spam.
my_syslog(LOG_ERR, "fstat(%d) error: %d/%s", i, errno, strerror(errno));
} else {
my_syslog(LOG_ERR, "Closing inherited file descriptor %d (%u:%u)",