gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] twogtp-a update


From: Evan Berggren Daniel
Subject: [gnugo-devel] twogtp-a update
Date: Mon, 26 Aug 2002 23:55:40 -0400 (EDT)

this patch makes twogtp-a properly close the gnugo processes and waits for
them to die.  Avoids leaving defunct processes around.

Thanks

Evan Daniel

Index: twogtp-a
===================================================================
RCS file: /cvsroot/gnugo/gnugo/interface/gtp_examples/twogtp-a,v
retrieving revision 1.8
diff -u -r1.8 twogtp-a
--- twogtp-a    8 Mar 2002 03:47:03 -0000       1.8
+++ twogtp-a    27 Aug 2002 03:48:53 -0000
@@ -238,6 +238,12 @@
        $game_list{$sgffile} = $resultw . "|" . $resultb
     }
     $games-- if $games > 0;
+    close $black_in;
+    close $black_out;
+    close $white_in;
+    close $white_out;
+    waitpid $pidb, 0;
+    waitpid $pidw, 0;
     print "games remaining: $games\n";
 }






reply via email to

[Prev in Thread] Current Thread [Next in Thread]