Skip to content

Commit

Permalink
Made modeq multiuser friendly when having corba comm.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1098 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Feb 25, 2004
1 parent 64309f5 commit dc83df8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mosh/src/mosh.cpp
Expand Up @@ -136,7 +136,9 @@ void doCorbaCommunication(int argc, char **argv, const string *scriptname)
{
CORBA::ORB_var orb = CORBA::ORB_init(argc,argv);
char uri[300];
sprintf (uri, "file:///tmp/openmodelica.objid");
char *user = getenv("USER");
if (user == NULL) { user = "nobody"; }
sprintf (uri, "file:///tmp/openmodelica.%s.objid",user);

CORBA::Object_var obj = orb->string_to_object(uri);

Expand Down

0 comments on commit dc83df8

Please sign in to comment.