[pypy-svn] r29201 - pypy/dist/pypy/tool

pedronis at codespeak.net pedronis at codespeak.net
Fri Jun 23 11:09:24 CEST 2006


Author: pedronis
Date: Fri Jun 23 11:09:23 2006
New Revision: 29201

Modified:
   pypy/dist/pypy/tool/slaveproc.py
Log:
slaves should not worry too much if the master connection dies, as long as the master is happy



Modified: pypy/dist/pypy/tool/slaveproc.py
==============================================================================
--- pypy/dist/pypy/tool/slaveproc.py	(original)
+++ pypy/dist/pypy/tool/slaveproc.py	Fri Jun 23 11:09:23 2006
@@ -49,7 +49,10 @@
     def do(self):
         exchg = Exchange(sys.stdin, sys.stdout)
         while True:
-            cmd = exchg.recv()
+            try:
+               cmd = exchg.recv()
+            except EOFError: # master died
+                break
             if cmd is None:
                 exchg.send('done')
                 break



More information about the Pypy-commit mailing list