diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-27 18:57:37 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-27 18:57:37 +0100 |
commit | bb99a35a873c35e80b0b47fe045081022660374d (patch) | |
tree | 63dc43ca84690ee6abff7548293c3619aef1587a /src/log.c | |
parent | 632117b71fdd2d1b9da7418d00ec21c18d60dedd (diff) |
log: increase socket buffers for logging by default
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } |