DragonFly On-Line Manual Pages

Search: Section:  


PRIV_DAEMON(3)                    Subroutines                   PRIV_DAEMON(3)

NAME

priv_daemon - detach from the controlling terminal

SYNOPSIS

#include <privman.h> int priv_daemon(int nochdir, int noclose);

DESCRIPTION

priv_daemon causes the process to detach from the controlling terminal, and run in the background as system daemons. A Privman managed program should call this in place of calling the daemon subroutine. The arguments nochdir and noclose have the same meaning here as in the normal daemon method. See daemon(3) for more details. As a (hopefully) irrelevant detail, normally daemon forks, and the child continues running while the original process exits. Since priv_init(3) already forked, priv_daemon causes the privilege server to detach from the controlling terminal instead.

FILES

${prefix}/etc/privman.d/ appname The application's configuration file. See privman_conf(5) for more details. priv_daemon requires that the configuration allow the fork permission.

BUGS

priv_fdreopen() has not yet been implemented, and might be needed to properly manage some of the cases.

AUTHOR

Network Associates. Send email to <privman@nailabs.com>

SEE ALSO

priv_bind(3) priv_execve(3) priv_fopen(3) priv_fork(3) priv_init(3) privman_conf(5) priv_open(3) priv_pam(3) priv_rerunas(3) privman(7) Unix SEPTEMBER 2002 PRIV_DAEMON(3)

Search: Section: