gnome-games r7503 - in trunk: . glchess glchess/src/lib



Author: jclinton
Date: Mon Mar 10 22:56:49 2008
New Revision: 7503
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7503&view=rev

Log:
fix blocker #517347 for release

Modified:
   trunk/ChangeLog
   trunk/glchess/ChangeLog
   trunk/glchess/src/lib/ai.py

Modified: trunk/glchess/src/lib/ai.py
==============================================================================
--- trunk/glchess/src/lib/ai.py	(original)
+++ trunk/glchess/src/lib/ai.py	Mon Mar 10 22:56:49 2008
@@ -235,9 +235,11 @@
                 os.waitpid(-1, os.WNOHANG)
             except OSError:
                 pass
-            
-            print 'Monitor died'
-            self.die()
+           
+            # If unexpected then AI has died
+            if self.__fromEngineFd != None:
+                print 'Monitor died'
+                self.die()
         signal.signal(signal.SIGCHLD, cDied)
 
         # Fork off a child process to manage the engine



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]