summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorviega1998-06-13 21:57:19 +0000
committerviega1998-06-13 21:57:19 +0000
commit2f8ffdc4ad7698777e3afc14f146caab8aa4cb88 (patch)
treeee5bdf39a92ad6add99e0bfc20203a1266254259 /scripts
parent901fb95186006a6bb6bfcd66bafbdbff9ccb8097 (diff)
downloadmailman-2f8ffdc4ad7698777e3afc14f146caab8aa4cb88.tar.gz
mailman-2f8ffdc4ad7698777e3afc14f146caab8aa4cb88.tar.zst
mailman-2f8ffdc4ad7698777e3afc14f146caab8aa4cb88.zip
Add Unlock() calls where appropriate, and add lock = 0 to MailList
constructor actuals when the list doesn't need to be locked.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/post4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/post b/scripts/post
index 570fc208f..24184664b 100755
--- a/scripts/post
+++ b/scripts/post
@@ -71,6 +71,7 @@ try:
or err_msg == mm_err.FORBIDDEN_SENDER_MSG):
# Do not send hold-for-approval notices for moderated messages
# or potential spam.
+ current_list.Unlock()
sys.exit(0)
the_sender = msg.GetSender()
@@ -100,7 +101,4 @@ notification of the moderator's decison.
# Let another process run.
finally:
current_list.Unlock()
-
-
-