diff options
| author | bwarsaw | 2006-12-29 22:20:25 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-12-29 22:20:25 +0000 |
| commit | f4a456a83b630feb294724ab462c87ca1ce1c3ae (patch) | |
| tree | c5c88540dae8306d11671f603d8975b01803ea16 /Mailman/Cgi/create.py | |
| parent | ae185106a624bfa7888aa8722d35194d3c5150e8 (diff) | |
| download | mailman-f4a456a83b630feb294724ab462c87ca1ce1c3ae.tar.gz mailman-f4a456a83b630feb294724ab462c87ca1ce1c3ae.tar.zst mailman-f4a456a83b630feb294724ab462c87ca1ce1c3ae.zip | |
Diffstat (limited to 'Mailman/Cgi/create.py')
| -rw-r--r-- | Mailman/Cgi/create.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Mailman/Cgi/create.py b/Mailman/Cgi/create.py index 378fa8f37..8c11f22e5 100644 --- a/Mailman/Cgi/create.py +++ b/Mailman/Cgi/create.py @@ -21,7 +21,6 @@ import os import cgi import sha import sys -import signal import logging from Mailman import Errors @@ -161,18 +160,7 @@ def process_request(doc, cgidata): fqdn_listname = '%s@%s' % (listname, email_host) # We've got all the data we need, so go ahead and try to create the list mlist = MailList.MailList() - # See admin.py for why we need to set up the signal handler. - def sigterm_handler(signum, frame): - # Make sure the list gets unlocked... - mlist.Unlock() - # ...and ensure we exit, otherwise race conditions could cause us to - # enter MailList.Save() while we're in the unlocked state, and that - # could be bad! - sys.exit(0) try: - # Install the emergency shutdown signal handler - signal.signal(signal.SIGTERM, sigterm_handler) - pw = sha.new(password).hexdigest() # Guarantee that all newly created files have the proper permission. # proper group ownership should be assured by the autoconf script @@ -205,10 +193,6 @@ def process_request(doc, cgidata): mlist.default_member_moderation = moderate mlist.Save() finally: - # Now be sure to unlock the list. It's okay if we get a signal here - # because essentially, the signal handler will do the same thing. And - # unlocking is unconditional, so it's not an error if we unlock while - # we're already unlocked. mlist.Unlock() # Now do the MTA-specific list creation tasks if config.MTA: |
