[Tools 6/6] testbot/Engine: Refuse to start a new server if one is running already.

Francois Gouget fgouget at codeweavers.com
Tue Mar 26 05:48:23 CDT 2013


---
 testbot/bin/Engine.pl |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testbot/bin/Engine.pl b/testbot/bin/Engine.pl
index fec0c67..5fcce05 100755
--- a/testbot/bin/Engine.pl
+++ b/testbot/bin/Engine.pl
@@ -712,6 +712,11 @@ sub main
     }
     exit 0;
   }
+  if (PingEngine())
+  {
+    print STDERR "The WineTestBot Engine is running already\n";
+    exit 1;
+  }
 
   $ENV{PATH} = "/usr/bin:/bin";
   delete $ENV{ENV};
-- 
1.7.10.4



More information about the wine-patches mailing list