From 156a1661a6120b7c32c1fd1d55cbd5c84ff3752a Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 15 Mar 2010 08:58:35 +0000 Subject: [PATCH] Comment a fine point, so it does not get lost when people borrow code from FreeBSD for other purposes. --- lib/libc/gen/daemon.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libc/gen/daemon.c b/lib/libc/gen/daemon.c index ba2a542bfb78..b359a87aa643 100644 --- a/lib/libc/gen/daemon.c +++ b/lib/libc/gen/daemon.c @@ -64,6 +64,10 @@ daemon(nochdir, noclose) case 0: break; default: + /* + * A fine point: _exit(0), not exit(0), to avoid triggering + * atexit(3) processing + */ _exit(0); }