Skip to content

Commit

Permalink
fix ZMQ on Linux
Browse files Browse the repository at this point in the history
- ZMQ on Linux never worked as it was killed by an extra dot :)
- dump the correct filename for ZMQ to make OMPython work

Belonging to [master]:
  - OpenModelica/OMCompiler#2202
  • Loading branch information
adrpo authored and OpenModelica-Hudson committed Feb 15, 2018
1 parent 12121df commit e3267ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/runtime/zeromqimpl.c
Expand Up @@ -63,7 +63,7 @@ void* ZeroMQ_initialize(const char *zeroMQFileSuffix)
#else
char *tmp_user = getenv("USER");
zeroMQFilePath = (char*)malloc(strlen(tempPath) + strlen("/openmodelica..port.") + strlen(tmp_user ? tmp_user : "nobody") + strlen(zeroMQFileSuffix) + 1);
sprintf(zeroMQFilePath, "%s/openmodelica.%s.port.%s", tempPath, tmp_user ? tmp_user : "nobody", zeroMQFileSuffix);
sprintf(zeroMQFilePath, "%s/openmodelica.%s.port%s", tempPath, tmp_user ? tmp_user : "nobody", zeroMQFileSuffix);
#endif
// Create the file with port number
FILE *fp;
Expand Down

0 comments on commit e3267ce

Please sign in to comment.