[gnome-chess] Call close_pid on the engine process when stopped



commit 343ab9e42482150912453303e6d724d59c9a6703
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Fri May 24 13:19:33 2013 -0500

    Call close_pid on the engine process when stopped
    
    This does nothing on Unix, but the glib documentation says it should be
    called regardless.

 src/chess-engine.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/chess-engine.vala b/src/chess-engine.vala
index 42a7ac0..8031c27 100644
--- a/src/chess-engine.vala
+++ b/src/chess-engine.vala
@@ -87,7 +87,10 @@ public abstract class ChessEngine : Object
     public void stop ()
     {
         if (pid != 0)
-            Posix.kill (pid, Posix.SIGTERM);        
+        {
+            Posix.kill (pid, Posix.SIGTERM);
+            Process.close_pid (pid);
+        }
     }
 
     private bool read_cb (IOChannel source, IOCondition condition)


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