[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[minion-cvs] File logs need to be flushed after each write. Zombies...
Update of /home/minion/cvsroot/src/minion/lib/mixminion/server
In directory moria.mit.edu:/tmp/cvs-serv24420/lib/mixminion/server
Modified Files:
ServerMain.py
Log Message:
File logs need to be flushed after each write. Zombies must be reaped.
Index: ServerMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/ServerMain.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ServerMain.py 12 Dec 2002 19:56:47 -0000 1.2
+++ ServerMain.py 15 Dec 2002 04:15:38 -0000 1.3
@@ -25,7 +25,7 @@
import mixminion.server.ServerKeys
from mixminion.Common import LOG, MixError, MixFatalError, ceilDiv, \
- formatBase64, formatTime
+ formatBase64, formatTime, waitForChildren
class IncomingQueue(mixminion.server.Queue.DeliveryQueue):
"""A DeliveryQueue to accept messages from incoming MMTP connections,
@@ -256,6 +256,8 @@
# Process any new messages that have come in, placing them
# into the mix pool.
self.incomingQueue.sendReadyMessages()
+ # Prevent child processes from turning into zombies.
+ waitForChildren(1)
# Before we mix, we need to log the hashes to avoid replays.
# FFFF We need to recover on server failure.