Commit 71b066ec authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use _exit(0) in our daemon(3) compat function, we do not want to

trigger atexit(3) processing.

Fixes #632



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4607 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 9c01a86e
......@@ -65,7 +65,11 @@ varnish_daemon(int nochdir, int noclose)
case 0:
break;
default:
exit(0);
/*
* A fine point: _exit(0), not exit(0), to avoid triggering
* atexit(3) processing
*/
_exit(0);
}
newgrp = setsid();
......
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