GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PRIV_DAEMON (3)

NAME

priv_daemon - detach from the controlling terminal

CONTENTS

Synopsis
Description
Files
Bugs
Author

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)
Search for    or go to Top of page |  Section 3 |  Main Index


Unix PRIV_DAEMON (3) SEPTEMBER 2002

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.