Update of /cvsroot/mailman/mailman/Mailman
In directory sc8-pr-cvs1:/tmp/cvs-serv20266
Modified Files:
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.109
retrieving revision 2.110
diff -u -d -r2.109 -r2.110
--- MailList.py 28 Sep 2003 15:59:32 -0000 2.109
+++ MailList.py 10 Oct 2003 04:08:27 -0000 2.110
@@ -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