Skip to content
Snippets Groups Projects
Commit b1b23ced authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

pp

parent 6af64fad
Branches
Tags
No related merge requests found
...@@ -102,7 +102,7 @@ void ConnectionManager::kill() ...@@ -102,7 +102,7 @@ void ConnectionManager::kill()
{ {
if(_pid > 0) { if(_pid > 0) {
if(KillProcess(_pid)) 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; _pid = -1;
} }
...@@ -252,8 +252,10 @@ int GmshFLTK(int argc, char **argv) ...@@ -252,8 +252,10 @@ int GmshFLTK(int argc, char **argv)
drawContext::global()->draw(); drawContext::global()->draw();
// listen to external solvers // listen to external solvers
if(CTX::instance()->solver.listen) if(CTX::instance()->solver.listen){
ConnectionManager::get(-1)->name = "unknown";
ConnectionManager::get(-1)->run(""); ConnectionManager::get(-1)->run("");
}
// loop // loop
return FlGui::instance()->run(); return FlGui::instance()->run();
......
...@@ -365,7 +365,7 @@ class GmshServer : public GmshSocket{ ...@@ -365,7 +365,7 @@ class GmshServer : public GmshSocket{
} }
if(command && strlen(command)){ if(command && strlen(command)){
SystemCall(command); // Start the solver SystemCall(command); // start the solver
} }
else{ else{
timeout = 0.; // no command launched: don't set a timeout timeout = 0.; // no command launched: don't set a timeout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment