Update of /cvsroot/mailman/mailman/Mailman
In directory sc8-pr-cvs1:/tmp/cvs-serv20777
Modified Files:
Tag: Release_2_1-maint
MailList.py
Log Message:
__save(): Flush the file and (depending on SYNC_AFTER_WRITE) fsync it
before closing the config.pck file. Should improve robustness.
Index: MailList.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/MailList.py,v
retrieving revision 2.100.2.5
retrieving revision 2.100.2.6
diff -u -d -r2.100.2.5 -r2.100.2.6
--- MailList.py 28 Sep 2003 16:03:34 -0000 2.100.2.5
+++ MailList.py 10 Oct 2003 04:11:45 -0000 2.100.2.6
@@ -477,6 +477,9 @@
fp = open(fname_tmp, 'w')
# Use a binary format... it's more efficient.
cPickle.dump(dict, fp, 1)
+ fp.flush()
+ if mm_cfg.SYNC_AFTER_WRITE:
+ os.fsync(fp.fileno())
fp.close()
except IOError, e:
syslog('error',
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins