| priv_daemon - detach from the controlling terminal |
| #include <privman.h> |
| int priv_daemon(int nochdir, int noclose); |
| 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. |
| ${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. |
| priv_fdreopen() has not yet been implemented, and might be needed to properly manage some of the cases. |
| Network Associates. Send email to <privman@nailabs.com> |
| 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) |