summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2010-03-15 08:58:35 +0000
committerphk <phk@FreeBSD.org>2010-03-15 08:58:35 +0000
commitb9030b276ea27caac8dad252c6131694ffec5b08 (patch)
treef3121dfb533ca0a6498e1b6fa98a1a578e215277 /lib/libc
parentdab875b1fd1f9e4fc9f6c7d4d66be9b337d07232 (diff)
downloadFreeBSD-src-b9030b276ea27caac8dad252c6131694ffec5b08.zip
FreeBSD-src-b9030b276ea27caac8dad252c6131694ffec5b08.tar.gz
Comment a fine point, so it does not get lost when people borrow code
from FreeBSD for other purposes.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/daemon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/gen/daemon.c b/lib/libc/gen/daemon.c
index ba2a542..b359a87 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);
}
OpenPOWER on IntegriCloud