Commit 4c3c4cad authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Tell daemon(3) to not chdir in debugging mode so we can find our core dumps.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@608 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent d08273d5
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment