Package: syslog-ng
Version: 1.9.8.1+20060128-1
Severity: normal

It seems that stats(0) throws syslog-ng 1.9.8 into an infinite loop, logging
thousands of:

Feb 11 09:42:10 cairn syslog-ng[10105]: Log statistics;  

every second. stats(0) with syslog-ng 1.6.9 disabled stats reporting, but it
seems that 1.9.8 dropped this check and sets up a timer unconditionally:

src/main.c:
  138 int 
  139 main_loop_run(GlobalConfig *cfg)
  140 {
  141   GMainLoop *main_loop;
  142   gint iters;
  143   
  144   msg_notice("syslog-ng starting up", 
  145              evt_tag_str("version", VERSION),
  146              NULL);
  147   main_loop = g_main_loop_new(NULL, TRUE);
->148   g_timeout_add(cfg->stats_freq * 1000, stats_timer, NULL);
  149   while (g_main_loop_is_running(main_loop))
  150     {

Could this be set up conditionally, if cfg->stats_freq > 0?

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages syslog-ng depends on:
ii  libc6                         2.3.5-13   GNU C Library: Shared libraries an
ii  util-linux                    2.12r-6    Miscellaneous system utilities

Versions of packages syslog-ng recommends:
ii  logrotate                     3.7.1-2    Log rotation utility

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to