From: <los...@us...> - 2007-03-22 22:18:47
|
Revision: 564 http://svn.sourceforge.net/fail2ban/?rev=564&view=rev Author: lostcontrol Date: 2007-03-22 15:18:46 -0700 (Thu, 22 Mar 2007) Log Message: ----------- - Clean up resources. Does not seem to free resources correctly. Gamin bug??? Modified Paths: -------------- trunk/server/filtergamin.py Modified: trunk/server/filtergamin.py =================================================================== --- trunk/server/filtergamin.py 2007-03-22 22:17:41 UTC (rev 563) +++ trunk/server/filtergamin.py 2007-03-22 22:18:46 UTC (rev 564) @@ -117,5 +117,15 @@ time.sleep(self.getSleepTime()) else: time.sleep(self.getSleepTime()) + # Cleanup Gamin + self.__cleanup() logSys.debug(self.jail.getName() + ": filter terminated") return True + + ## + # Desallocates the resources used by Gamin. + + def __cleanup(self): + for path in Filter.getLogPath(self): + self.monitor.stop_watch(path) + del self.monitor This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |