summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Kline <ek@google.com>2018-05-25 10:36:57 +0900
committerErik Kline <ek@google.com>2018-05-25 17:04:50 +0900
commit030d63d59735bbdf5cb6bed7ddb07c4e4567f22a (patch)
treea808cf1933d9180e2ad555efd5b24dbf6a4f759c
parent1e03ec8dc8c0401318bdeaef0845709d733b8f38 (diff)
downloadplatform_external_dnsmasq-030d63d59735bbdf5cb6bed7ddb07c4e4567f22a.tar.gz
platform_external_dnsmasq-030d63d59735bbdf5cb6bed7ddb07c4e4567f22a.tar.bz2
platform_external_dnsmasq-030d63d59735bbdf5cb6bed7ddb07c4e4567f22a.zip
Lessen EACCES log spam
Test: as follows - built, flashed, booted - started tethering, observed dnsmasq log messages but no EACCES spam Bug: 32163131 Bug: 38364896 Bug: 80229031 Merged-In: I6e6263c1dc535e986b6cf952b61bf44fcf24627a Merged-In: I2b294f3bbde01c1c8ca46df79e9a18d261830a68 Change-Id: I719c81c326c95186576c7186cc25f4eda24091fa (cherry picked from commit be9b6f807197ae63c4e347f6d0bf4427ecacc205)
-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)",