OSX fixes

This commit is contained in:
roberto@mrspurr
2011-01-02 18:53:14 +01:00
parent d586fe2fb3
commit 4b2fdb3d30
+3 -1
View File
@@ -708,7 +708,8 @@ int uwsgi_start(void *v_argv) {
uwsgi_log("my PID is %d\n", (int) getpid());
if (getpid() == 1) {
#ifdef __linux__
if (uwsgi.ns && getpid() == 1) {
if (sethostname("uwsgifakehost", strlen("uwsgifakehost"))) {
uwsgi_error("sethostname()");
}
@@ -749,6 +750,7 @@ int uwsgi_start(void *v_argv) {
uwsgi_error("mount()");
}
}
#endif
uwsgi_as_root();