diff options
| author | klm | 1998-07-01 22:22:28 +0000 |
|---|---|---|
| committer | klm | 1998-07-01 22:22:28 +0000 |
| commit | e347c2006bc969d1b3cade65f22ba2191a298f91 (patch) | |
| tree | 2d8ea865f465f43fe5a854aec08e781e6c88fae4 /Mailman/Logging/MultiLogger.py | |
| parent | 06c6ff886f5a08f6c2434c665824515aebdc1801 (diff) | |
| download | mailman-e347c2006bc969d1b3cade65f22ba2191a298f91.tar.gz mailman-e347c2006bc969d1b3cade65f22ba2191a298f91.tar.zst mailman-e347c2006bc969d1b3cade65f22ba2191a298f91.zip | |
[Other developers - please take a look at these refinements to the
deliver script. Deliver is all important, and i don't want to screw
it up. I've tested it a bit, but would like your scrutiny before i
put something like it in production!]
I implemented a finite loop around all os.fork()s in the script, to
retry every 15 seconds, up to five times, when error.EAGAIN (resource
temporarily unavailable) is hit.
In the process i've encapsulated the script code in functions,
including a function "forker()" (not mama_forker() - i showed some
restraint:), which takes care of the EAGAIN looping.
Here's a cron report on the error the last time mailpasswds was run:
Your "cron" job on parrot
/usr/local/bin/python /home/mailman/mailman/cron/mailpasswds
produced the following output:
Here's a sample of the traceback that
Traceback (innermost last):
File "/home/mailman/mailman/cron/mailpasswds", line 117, in ?
main()
File "/home/mailman/mailman/cron/mailpasswds", line 114, in main
MailAllPasswords(list, users)
File "/home/mailman/mailman/cron/mailpasswds", line 81, in MailAllPasswords
list.SendTextToUser(subject = subj,
File "/home/mailman/mailman/modules/mm_deliver.py", line 105, in SendTextToUser
mm_utils.SendTextToUser(subject, text, recipient, sender,
File "/home/mailman/mailman/modules/mm_utils.py", line 75, in SendTextToUser
DeliverToUser(msg, recipient, add_headers=add_headers)
File "/home/mailman/mailman/modules/mm_utils.py", line 89, in DeliverToUser
if os.fork():
os.error: (11, 'Resource temporarily unavailable')
Diffstat (limited to 'Mailman/Logging/MultiLogger.py')
0 files changed, 0 insertions, 0 deletions
