From b1b23ced9de8e5b8650ee91ac8dc3b308d691036 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sat, 27 Mar 2010 12:49:33 +0000
Subject: [PATCH] pp

---
 Common/ConnectionManager.cpp | 2 +-
 Common/Gmsh.cpp              | 4 +++-
 Common/GmshSocket.h          | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Common/ConnectionManager.cpp b/Common/ConnectionManager.cpp
index cc58c4059e..1a1e885e49 100644
--- a/Common/ConnectionManager.cpp
+++ b/Common/ConnectionManager.cpp
@@ -102,7 +102,7 @@ void ConnectionManager::kill()
 {
   if(_pid > 0) {
     if(KillProcess(_pid))
-      Msg::Info("Killed %s pid %d", name.c_str(), _pid);
+      Msg::Info("Killed '%s' (pid %d)", name.c_str(), _pid);
   }
   _pid = -1;
 }
diff --git a/Common/Gmsh.cpp b/Common/Gmsh.cpp
index 3cfe928c7e..72bf6e1a7c 100644
--- a/Common/Gmsh.cpp
+++ b/Common/Gmsh.cpp
@@ -252,8 +252,10 @@ int GmshFLTK(int argc, char **argv)
   drawContext::global()->draw();
 
   // listen to external solvers
-  if(CTX::instance()->solver.listen)
+  if(CTX::instance()->solver.listen){
+    ConnectionManager::get(-1)->name = "unknown";
     ConnectionManager::get(-1)->run("");
+  }
 
   // loop
   return FlGui::instance()->run();
diff --git a/Common/GmshSocket.h b/Common/GmshSocket.h
index 0eb7ea62f7..0021b49889 100644
--- a/Common/GmshSocket.h
+++ b/Common/GmshSocket.h
@@ -365,7 +365,7 @@ class GmshServer : public GmshSocket{
     }
 
     if(command && strlen(command)){
-      SystemCall(command); // Start the solver
+      SystemCall(command); // start the solver
     }
     else{
       timeout = 0.; // no command launched: don't set a timeout
-- 
GitLab