From bee5eb485b0584ea4dd9df29c767d4deeaa694e8 Mon Sep 17 00:00:00 2001 From: mailman Date: Fri, 20 Mar 1998 17:53:01 +0000 Subject: We have been seeing problems when invoked in a tight loop from senddigest with loss of the digest temp files. To aid debugging, we add an argument indicating the file when an ioerror is encountered in the process (but the IOError is still raised). See my next checkin, of mm_digest, for what seems to be the fix of the underlying problem. --- mail/deliver | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mail/deliver b/mail/deliver index 39f66f4a5..5aeeda2e4 100755 --- a/mail/deliver +++ b/mail/deliver @@ -1,6 +1,5 @@ #!/usr/local/bin/python -# -# + # Heh, heh, heh, this partition reminds me of the knapsack problem ;-) # Ie, the optimal distribution here is NP Complete. @@ -65,7 +64,10 @@ if not os.fork(): if spawns < 1: spawns = 1 to_list = sys.argv[4:] - file = open(sys.argv[1], 'r') + try: + file = open(sys.argv[1], 'r') + except IOError, msg: + raise IOError, (msg[0], msg[1], sys.argv[1]) text = file.read() file.close() os.unlink(sys.argv[1]) -- cgit v1.2.3-70-g09d2