terminology: change cwd to root so we are not depending on the directory

we are started in
This commit is contained in:
Marcel Hollerbach 2017-04-03 14:54:47 +02:00
parent 1fa0fd7148
commit 8c41029c5d
1 changed files with 10 additions and 0 deletions

View File

@ -874,6 +874,16 @@ remote:
if (ipc_instance_add(&inst))
goto end;
}
else
{
if (!cd)
{
char buf[PATH_MAX];
getcwd(buf, sizeof(buf));
cd = strdup(buf);
}
}
if ((!single) && (config->multi_instance))
{
ipc_instance_new_func_set(main_ipc_new);