(RADIATOR) Memory Leak problem

PREVOSTO, Laurent Laurent.PREVOSTO at neufcegetel.fr
Fri Jun 23 11:56:05 CDT 2006


 
After a few tests, it looks like there is a memory leak in the openlog /
closelog sequence.
And i don't know where it exactly comes from (Syslog.pm or libc).

Right now (since it's an emergency), i could not do better than patching
LogSYSLOG.pm this way :


27c27
< my $logopened = 0;
---
> 
72,79c72,74
< 	eval {
< 	    if (! $logopened)
< 	       {
< 		   openlog($self->{LogIdent}, 'pid', $self->{Facility});
< 		   $logopened = 1;
< 	       }
< 	      syslog("$self->{Facility}|$priorityToSyslog[$priority]",
$s)
< 	};
---
> 	eval {openlog($self->{LogIdent}, 'pid', $self->{Facility});
> 	      syslog("$self->{Facility}|$priorityToSyslog[$priority]",
$s);
> 	      closelog()};


If anyone comes with a better idea...

Regards,

Laurent

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list