[syslog-ng]fix for the -HUP problem
Balazs Scheidler
bazsi@balabit.hu
Fri, 26 Apr 2002 11:31:00 +0200
hi,
for all those who had problems with SIGHUP processing, please try this
patch:
diff -u -r1.49 affile.c
--- affile.c 2002/04/12 07:42:16 1.49
+++ affile.c 2002/04/26 09:28:07
@@ -894,7 +903,7 @@
if (self->flags & AFFILE_NO_EXPAND) {
if (!self->writers) {
- self->writers = make_affile_dest_writer(self, self->template_fname);
+ self->writers = make_affile_dest_writer(self, ol_string_use(self->template_fname));
res = LOG_HANDLER_INIT(self->writers, self->cfg, NULL);
if (res & ST_QUIT)
return NULL;
The problem doesn't occur if your destination files have macros in their
names. This might affect the 1.4 versions as well.
--
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1