mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
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.
This commit is contained in:
parent
0e28c86f54
commit
875622c39e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user