[syslog-ng] Syslog-ng fails with more than one program destination

Balazs Scheidler bazsi@balabit.hu
Sun, 13 Feb 2000 16:21:32 +0100


> > I tried 1.3.14 and it has the same problem. It seems to be load related. The
> > machine I'm running this on receives about 1000 messages a minute. When I
> > stop logging to this computer from the other machines it restarts fine. Is
> > there any other debugging you'd like me to try?
> > 
> > -George
> 
> hmmm... I'll try to increase the load. I've just arrived home and catching
> up messages. (I was skiing in Czech Republic last week :)

This patch should fix the problem:

--- main.c      1999/12/18 22:25:38     1.22
+++ main.c      2000/02/13 15:07:57
@@ -131,7 +131,7 @@

 void sig_child(int signo)
 {
-       while (waitpid(-1, NULL, WNOHANG) != -1)
+       while (waitpid(-1, NULL, WNOHANG) > 0)
                ;
        signal(SIGCHLD, sig_child);
 }


-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
     url: http://www.balabit.hu/pgpkey.txt