diff options
| author | mailman | 1998-03-20 18:29:22 +0000 |
|---|---|---|
| committer | mailman | 1998-03-20 18:29:22 +0000 |
| commit | 32780964bcc7a7702e67fe199ef83777e4ee6ced (patch) | |
| tree | 6a7bd89472e61ef1d9110e0619b5186d0db61a37 /modules/maillist.py | |
| parent | 8847481c1098ee3019c56f8423049f4fc4efe3f1 (diff) | |
| download | mailman-32780964bcc7a7702e67fe199ef83777e4ee6ced.tar.gz mailman-32780964bcc7a7702e67fe199ef83777e4ee6ced.tar.zst mailman-32780964bcc7a7702e67fe199ef83777e4ee6ced.zip | |
Add __del__ to close the log_files that were retained across the
maillist session. I was running out of file descriptors in the
extensive map_maillist() type activities. Not sure if it's the log
files, but it can't hurt.
Diffstat (limited to 'modules/maillist.py')
| -rw-r--r-- | modules/maillist.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/maillist.py b/modules/maillist.py index 86393d09b..19bdbf540 100644 --- a/modules/maillist.py +++ b/modules/maillist.py @@ -48,6 +48,10 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin, self.InitVars(name) self.Load() + def __del__(self): + for f in self._log_files.values(): + f.close() + def GetAdminEmail(self): return '%s-admin@%s' % (self._internal_name, self.host_name) |
