Skip to content

Commit

Permalink
forbid daemonizing in vassal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto@mrspurr committed Mar 19, 2011
1 parent 4cbf6cf commit 5798b82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils.c
Expand Up @@ -70,6 +70,12 @@ void daemonize(char *logfile) {
pid_t pid;
int fdin;

// do not daemonize under emperor
if (uwsgi.has_emperor) {
logto(logfile);
return;
}

pid = fork();
if (pid < 0) {
uwsgi_error("fork()");
Expand Down

0 comments on commit 5798b82

Please sign in to comment.