summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Kiviluoto <janne.kiviluoto@bluegiga.com>2010-03-31 13:58:58 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2010-03-31 13:58:58 (GMT)
commitc897dfe011fb9006268b4f42aba8cd94ce545e7b (patch)
treed15446d6757af021b3487a215fbee571539b69df
parent8d22ca81c34a9127f96cf3bb85b6a64ae17e23b4 (diff)
downloadbusybox-c897dfe011fb9006268b4f42aba8cd94ce545e7b.tar.gz
busybox-c897dfe011fb9006268b4f42aba8cd94ce545e7b.tar.bz2
syslogd: make maximum message length configurable
Signed-off-by: Janne Kiviluoto <janne.kiviluoto@bluegiga.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--sysklogd/Config.in10
-rw-r--r--sysklogd/syslogd.c2
2 files changed, 11 insertions, 1 deletions
diff --git a/sysklogd/Config.in b/sysklogd/Config.in
index 0664be0..0d819e1 100644
--- a/sysklogd/Config.in
+++ b/sysklogd/Config.in
@@ -50,6 +50,16 @@ config FEATURE_SYSLOGD_DUP
Option -D instructs syslogd to drop consecutive messages
which are totally the same.
+config FEATURE_SYSLOGD_READ_BUFFER_SIZE
+ int "Read buffer size in bytes"
+ default 256
+ range 256 20000
+ depends on SYSLOGD
+ help
+ This option sets the size of the syslog read buffer.
+ Actual memory usage increases around five times the
+ change done here.
+
config FEATURE_IPC_SYSLOG
bool "Circular Buffer support"
default n
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 3320369..6bc450b 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -46,7 +46,7 @@
#undef SYSLOGD_WRLOCK
enum {
- MAX_READ = 256,
+ MAX_READ = CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE,
DNS_WAIT_SEC = 2 * 60,
};