summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
Diffstat (limited to 'node')
-rw-r--r--node/Service.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/node/Service.cpp b/node/Service.cpp
index 1e252a84..a43d104a 100644
--- a/node/Service.cpp
+++ b/node/Service.cpp
@@ -139,6 +139,8 @@ void Service::threadMain()
dup2(in[0],STDIN_FILENO);
dup2(out[1],STDOUT_FILENO);
dup2(err[1],STDERR_FILENO);
+ setenv("ZT_HOME",_r->homePath.c_str(),1);
+ chdir(_r->homePath.c_str());
execl(_path.c_str(),_path.c_str(),_r->homePath.c_str(),(const char *)0);
exit(-1);
}