summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-27 18:57:37 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-27 18:57:37 +0100
commitbb99a35a873c35e80b0b47fe045081022660374d (patch)
tree63dc43ca84690ee6abff7548293c3619aef1587a /src/log.c
parent632117b71fdd2d1b9da7418d00ec21c18d60dedd (diff)
log: increase socket buffers for logging by default
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index 0594f7fde5..c37ab22640 100644
--- a/src/log.c
+++ b/src/log.c
@@ -33,6 +33,8 @@
#include "macro.h"
#include "socket-util.h"
+#define SNDBUF_SIZE (8*1024*1024)
+
static LogTarget log_target = LOG_TARGET_CONSOLE;
static int log_max_level = LOG_INFO;
@@ -127,6 +129,8 @@ static int create_log_socket(int type) {
if (fd < 0)
return -errno;
+ fd_inc_sndbuf(fd, SNDBUF_SIZE);
+
return fd;
}