New -listen option
This follows the merge request !391 (merged) and commit d67e1e74.
There is still a problem when calling a subclient. Indeed, the same code will run for the 'main' gmsh and the other clients (e.g. another gmsh). A MWE is attached
The 'old' behaviour (with -listen
+ Solver.SocketName
) also breaks (since CTX::instance()->solver.listen
is also true
).
A simple hack would be to add a static variable like static bool first = true
and set it to false
when we LaunchClient
returns.
See for instance the following patch
But that's clearly not an elegant solution :p...
Should we go back to the 'basename+id' implementation (see merge request !392 (closed)) before finding a better way?