[syslog-ng]syslog-ng mysteriously exits

Balazs Scheidler bazsi@balabit.hu
Fri, 22 Feb 2002 10:39:50 +0100


On Thu, Feb 21, 2002 at 11:32:06AM -0600, Len Conrad wrote:
> 
> >1.5.13 & 1.5.14 seems to have a bug, that it keeps alive incoming
> >connections as it should, but stops logging from such kept alive connection.
> 
> I'm intalling 1.4.14 from the FreeBSD ports, should I stay with that for 
> now, and until 1.5.15 is out?  1.4.14 seems to stay alive, at least.
> 
> For our pop-before-smtp usage of syslog-ng, no logging means rejecting our 
> roaming users' outbound mail.

here's a small patch, which fixes the issue I was experiencing, hopefully
it's the same as yours.

diff -u -r1.19 afunix.c
--- afunix.c	2001/10/19 14:19:15	1.19
+++ afunix.c	2002/02/22 09:37:14
@@ -272,7 +272,7 @@
 		struct persistent_info *p;
 
 		p = make_persistent_info
-			(c_format("afunix_%S", unix_addr->path),
+			(c_format("afunix_%z_%S", (self->super.flags & AFSOCKET_STREAM) ? "stream" : "dgram", unix_addr->path),
 			 &self->super.connections->super, 
 			 NULL);
 		add_persistent_info(persistent, p);


-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1