From: phk Date: Wed, 2 Aug 2006 18:12:42 +0000 (+0000) Subject: Tell daemon(3) to not chdir in debugging mode so we can find our core dumps. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=910e183e04c030cc35bbb1a55f06d9c02cadf1e9;p=varnish Tell daemon(3) to not chdir in debugging mode so we can find our core dumps. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@608 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/varnishd.c b/varnish-cache/bin/varnishd/varnishd.c index 54300b03..46f382e7 100644 --- a/varnish-cache/bin/varnishd/varnishd.c +++ b/varnish-cache/bin/varnishd/varnishd.c @@ -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());