priv_daemon man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

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)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net