diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-12-03 11:57:17 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-12-03 11:59:03 +0100 |
commit | 27c8ca439fcf313cb6839e77ae988b231b188c58 (patch) | |
tree | 07dc6a6dee28a9d6b5354230638264756902d8f3 /src/core | |
parent | a5fac1df2743e6407b23d22dbcbf7a25deddbb5c (diff) | |
download | systemd-27c8ca439fcf313cb6839e77ae988b231b188c58.tar.gz |
manager: write net/unix/max_dgram_qlen sysctl as fixed string
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/main.c b/src/core/main.c index df83a1d2d4..9c1de3624c 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1405,8 +1405,7 @@ static int bump_unix_max_dgram_qlen(void) { if (v >= DEFAULT_UNIX_MAX_DGRAM_QLEN) return 0; - r = write_string_filef("/proc/sys/net/unix/max_dgram_qlen", WRITE_STRING_FILE_DISABLE_BUFFER, - "%lu", DEFAULT_UNIX_MAX_DGRAM_QLEN); + r = sysctl_write("net/unix/max_dgram_qlen", STRINGIFY(DEFAULT_UNIX_MAX_DGRAM_QLEN)); if (r < 0) return log_full_errno(IN_SET(r, -EROFS, -EPERM, -EACCES) ? LOG_DEBUG : LOG_WARNING, r, "Failed to bump AF_UNIX datagram queue length, ignoring: %m"); |