diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-06-13 10:15:59 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-06-13 14:17:25 +0200 |
commit | 768fcd779fbb9fd86932da4bef031260b88da210 (patch) | |
tree | 6da14bf24f4c562514e2c43d7c84c9747231effa /src/journal/journald-stream.c | |
parent | Merge pull request #28014 from bluca/portable_fixes (diff) | |
download | systemd-768fcd779fbb9fd86932da4bef031260b88da210.tar.xz systemd-768fcd779fbb9fd86932da4bef031260b88da210.zip |
socket: bump listen() backlog to INT_MAX everywhere
This is a rework of #24764 by Cristian RodrÃguez
<crodriguez@owncloud.com>, which stalled.
Instead of assigning -1 we'll use a macro defined to INT_MAX however.
Diffstat (limited to 'src/journal/journald-stream.c')
-rw-r--r-- | src/journal/journald-stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c index 735e2c5e8b..222b036698 100644 --- a/src/journal/journald-stream.c +++ b/src/journal/journald-stream.c @@ -938,7 +938,7 @@ int server_open_stdout_socket(Server *s, const char *stdout_socket) { (void) chmod(sa.un.sun_path, 0666); - if (listen(s->stdout_fd, SOMAXCONN) < 0) + if (listen(s->stdout_fd, SOMAXCONN_DELUXE) < 0) return log_error_errno(errno, "listen(%s) failed: %m", sa.un.sun_path); } else (void) fd_nonblock(s->stdout_fd, true); |