summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-11-05 23:06:14 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-06 16:41:34 +0300
commit875622c39e925f866587629b997e47fe4c7ff1cd (patch)
tree156404e93249faf3fe77a85c562552a5834713a9
parent0e28c86f54f80a6d6364a6024f55eb10b4b5d529 (diff)
downloadsystemd-875622c39e925f866587629b997e47fe4c7ff1cd.tar.gz
systemd-875622c39e925f866587629b997e47fe4c7ff1cd.tar.bz2
systemd-875622c39e925f866587629b997e47fe4c7ff1cd.zip
core, sysctl: skip ENOENT for /proc/sys/net/unix/max_dgram_qlen
sysctl is disabled for /proc mounted from an user namespace thus entries like /proc/sys/net/unix/max_dgram_qlen do not exist. In this case, skip the error and do not try to change the default for the AF_UNIX datagram queue length.
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 807f5457c2..1fd3f10f7e 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1391,7 +1391,7 @@ static int bump_unix_max_dgram_qlen(void) {
r = read_one_line_file("/proc/sys/net/unix/max_dgram_qlen", &qlen);
if (r < 0)
- return log_warning_errno(r, "Failed to read AF_UNIX datagram queue length, ignoring: %m");
+ return log_full_errno(r == -ENOENT ? LOG_DEBUG : LOG_WARNING, r, "Failed to read AF_UNIX datagram queue length, ignoring: %m");
r = safe_atolu(qlen, &v);
if (r < 0)