aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Kiviluoto <janne.kiviluoto@bluegiga.com>2010-03-31 15:58:58 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-03-31 15:58:58 +0200
commitc897dfe011fb9006268b4f42aba8cd94ce545e7b (patch)
treed15446d6757af021b3487a215fbee571539b69df
parent8d22ca81c34a9127f96cf3bb85b6a64ae17e23b4 (diff)
downloadbusybox-w32-c897dfe011fb9006268b4f42aba8cd94ce545e7b.tar.gz
busybox-w32-c897dfe011fb9006268b4f42aba8cd94ce545e7b.tar.bz2
busybox-w32-c897dfe011fb9006268b4f42aba8cd94ce545e7b.zip
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 0664be08d..0d819e195 100644
--- a/sysklogd/Config.in
+++ b/sysklogd/Config.in
@@ -50,6 +50,16 @@ config FEATURE_SYSLOGD_DUP
50 Option -D instructs syslogd to drop consecutive messages 50 Option -D instructs syslogd to drop consecutive messages
51 which are totally the same. 51 which are totally the same.
52 52
53config FEATURE_SYSLOGD_READ_BUFFER_SIZE
54 int "Read buffer size in bytes"
55 default 256
56 range 256 20000
57 depends on SYSLOGD
58 help
59 This option sets the size of the syslog read buffer.
60 Actual memory usage increases around five times the
61 change done here.
62
53config FEATURE_IPC_SYSLOG 63config FEATURE_IPC_SYSLOG
54 bool "Circular Buffer support" 64 bool "Circular Buffer support"
55 default n 65 default n
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 33203697d..6bc450bf9 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -46,7 +46,7 @@
46#undef SYSLOGD_WRLOCK 46#undef SYSLOGD_WRLOCK
47 47
48enum { 48enum {
49 MAX_READ = 256, 49 MAX_READ = CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE,
50 DNS_WAIT_SEC = 2 * 60, 50 DNS_WAIT_SEC = 2 * 60,
51}; 51};
52 52