From: Fredrik Tolf Date: Thu, 27 Dec 2012 07:15:26 +0000 (+0100) Subject: Merge branch 'master' of git.dolda2000.com:/srv/git/r/ashd X-Git-Tag: 0.12~22 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=4e8fb5cddb8dc1620ac9d1b46cce54ad6f717716;hp=2dbb9937cfe0d4f4a059181621c52d0fbd0c7eb1 Merge branch 'master' of git.dolda2000.com:/srv/git/r/ashd --- diff --git a/src/htparser.c b/src/htparser.c index 5dfed8b..e6f545a 100644 --- a/src/htparser.c +++ b/src/htparser.c @@ -426,8 +426,8 @@ static void initroot(void *uu) { int fd; + setsid(); if(daemonize) { - setsid(); chdir("/"); if((fd = open("/dev/null", O_RDWR)) >= 0) { dup2(fd, 0);