Sync daemon(3) with FreeBSD:
authorPeter Avalos <pavalos@theshell.com>
Fri, 13 Feb 2009 22:37:49 +0000 (17:37 -0500)
committerPeter Avalos <pavalos@theshell.com>
Tue, 7 Apr 2009 07:09:18 +0000 (21:09 -1000)
commita9ba5f709d6ef2f129b3ffe05ca03d4edef9a31c
tree2c9d1b022e33a6cc74f125485cf66ccd24f104bb
parent46c708557a77ce3d3300570c7b020a0f8777fa12
Sync daemon(3) with FreeBSD:

* Prevent abnormal termination of a child daemon process when created
by a parent that is a session leader (e.g., login shell) by ignoring
SIGHUP in before calling fork(2) and then restoring SIGHUP's action
after setsid(3).

* Merge some updates and markup fixes from OpenBSD for the manual page.
lib/libc/gen/daemon.3
lib/libc/gen/daemon.c