[syslog-ng]syslog-ng 1.5.25 released
Balazs Scheidler
bazsi@balabit.hu
Wed, 22 Jan 2003 15:41:14 +0100
On Wed, Jan 22, 2003 at 04:39:58PM +0300, Borzenkov Andrey wrote:
> >
> > On Mon, Jan 20, 2003 at 03:41:27PM -0500, Blaise St-Laurent wrote:
> > > strangely enough, i can't get this version to work for me at all. 1.5.24
> > > worked fine. I've compiled both the new syslog-ng and libol, installed
> > (via
> > > RPM) as a drop in replacement for 1.5.24, and as a result i don't get
> > any
> > > log output. reverting back to 1.5.24 restores functionality.
> > >
> > > Built and running on a Redhat 8.0 system. Any ideas?
> >
> > can you send me an strace output? it worked for me on a couple of test
> > cases and Nate also uses it as this version includes the 'bad_hostnames'
> > feature he was asking for.
> >
>
> Confirmed on Mandrake 9.0 with glibc-2.2.5-16mdk. It simple does not get any
> messages and sits there in poll. Strace and config attached.
Thanks. I've found the problem, it is in libol and was committed
independently of my syslog-ng release. Here is the fix, I'll release a new
libol ASAP.
Index: src/io.c
===================================================================
RCS file: /var/cvs/syslog-ng/libol/src/io.c,v
retrieving revision 1.34
diff -u -r1.34 io.c
--- src/io.c 20 Jan 2003 15:35:37 -0000 1.34
+++ src/io.c 22 Jan 2003 14:35:59 -0000
@@ -203,7 +203,8 @@
}
else {
gc_maybe(&b->super, 1);
- res = poll(NULL, 0, timeout < 0 ? 60000 : timeout * 1000);
+ if (nfds == 0)
+ res = poll(NULL, 0, timeout < 0 ? 60000 : timeout * 1000);
}
if (res < 0)
--
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1