]> err.no Git - varnish/commitdiff
Tell daemon(3) to not chdir in debugging mode so we can find our core dumps.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 2 Aug 2006 18:12:42 +0000 (18:12 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 2 Aug 2006 18:12:42 +0000 (18:12 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@608 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/varnishd.c

index 54300b03d6f5637143bdfe82ed31e110ad683a5e..46f382e7ce28b4f3fad02ee8c2fbced5d31a5678 100644 (file)
@@ -682,7 +682,7 @@ main(int argc, char *argv[])
 
        if (dflag)
                DebugStunt();
-       daemon(0, dflag);
+       daemon(dflag, dflag);
        if (dflag)
                printf("%d\n%d\n%d\n", getpid(), getsid(0), getpgrp());