[syslog-ng] time_sleep()

Balazs Scheidler bazsi at balabit.hu
Sun Apr 30 20:52:21 CEST 2006


On Tue, 2006-04-25 at 17:12 -0400, John Morrissey wrote:
> On Tue, Apr 25, 2006 at 01:52:30PM -0700, Vaibhav Goel wrote:
> > The rest of the file is just a bunch of source, destination, filter and
> > log entries for various stuff
> > 
> > Also:
> > [root at clxd01md syslog-ng]# strings /sbin/syslog-ng  | grep time_sleep
> > time_sleep
> > 
> > So looks like there could be some time_sleep code in the binary at
> > least...
> 
> True. You posted the output of syslog-ng -V before (1.6.10), and I
> definitely see the code in the final 1.6.10 tarball. strings(1) shows
> time_sleep text on my working syslog-ng binaries, and I can't find any
> reason it wouldn't be compiled in.
> 
> Sorry, I'm not sure what to say. Baszi?

Hmmm. this patch seems to have been missed in some way. Can you check if
this makes it work?

diff -u -r1.58.4.7 cfg-grammar.y
--- cfg-grammar.y       13 Mar 2006 23:34:13 -0000      1.58.4.7
+++ cfg-grammar.y       30 Apr 2006 18:51:28 -0000
@@ -630,6 +630,7 @@
        | KW_USE_FQDN '(' yesno ')'             { configuration->use_fqdn = $3; }
        | KW_USE_DNS '(' yesno ')'              { configuration->use_dns = $3; }
        | KW_TIME_REOPEN '(' NUMBER ')'         { configuration->time_reopen = $3; }
+       | KW_TIME_SLEEP '(' NUMBER ')'          { configuration->time_sleep = $3; }
        | KW_TIME_REAP '(' NUMBER ')'           { configuration->time_reap = $3; }
        | KW_LOG_FIFO_SIZE '(' NUMBER ')'       { configuration->log_fifo_size = $3; }
        | KW_GC_BUSY_THRESHOLD '(' NUMBER ')'   { configuration->gc_busy_threshold = $3; }


-- 
Bazsi



More information about the syslog-ng mailing list