aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Mailman/MailList.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index ad3aa7e8..3b9f47b0 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -477,6 +477,9 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin,
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',