diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-12-19 14:32:14 +0300 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-12-19 14:32:14 +0300 |
commit | d4a5e255c479647d172c9d7d7f61049277b7c0b9 (patch) | |
tree | 7931e79c7b1cc3c4d8804c39da6dc6cf9fb667ab /sysklogd/logread.c | |
parent | 3752d337b3b8e704f1fe27451d481eae85d64f48 (diff) |
Patch from Fillod Stephane:
You will find in the attached file "syslog.patch" a patch which adds
config options to set at compile time the size of the circular buffer,
and some documentation update.
Diffstat (limited to 'sysklogd/logread.c')
-rw-r--r-- | sysklogd/logread.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sysklogd/logread.c b/sysklogd/logread.c index 524178fe8..207e78b57 100644 --- a/sysklogd/logread.c +++ b/sysklogd/logread.c @@ -108,8 +108,7 @@ extern int logread_main(int argc, char **argv) i = follow ? buf->tail : buf->head; do { -#undef RC_LOGREAD -#ifdef RC_LOGREAD +#ifdef CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING char *buf_data; int log_len,j; #endif @@ -128,7 +127,7 @@ extern int logread_main(int argc, char **argv) } // Read Memory -#ifdef RC_LOGREAD +#ifdef CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING log_len = buf->tail - i; if (log_len < 0) log_len += buf->size; @@ -155,7 +154,7 @@ extern int logread_main(int argc, char **argv) // release the lock on the log chain sem_up(log_semid); -#ifdef RC_LOGREAD +#ifdef CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING for (j=0; j < log_len; j+=strlen(buf_data+j)+1) { printf("%s", buf_data+j); if (follow) |