2010-12-30 02:06:31 +01:00
|
|
|
Libdaemon is a lightweight C library that eases the writing of UNIX
|
|
|
|
daemons.
|
|
|
|
|
2010-05-11 22:54:03 +02:00
|
|
|
It consists of the following parts:
|
2010-12-30 02:06:31 +01:00
|
|
|
|
2010-05-11 22:54:03 +02:00
|
|
|
* A wrapper around fork() which does the correct daemonization
|
|
|
|
procedure of a process
|
|
|
|
* A wrapper around syslog() for simpler and compatible log output to
|
|
|
|
Syslog or STDERR
|
|
|
|
* An API for writing PID files
|
|
|
|
* An API for serializing UNIX signals into a pipe for usage with
|
|
|
|
select() or poll()
|
|
|
|
* An API for running subprocesses with STDOUT and STDERR redirected
|
2010-12-30 02:06:31 +01:00
|
|
|
to syslog.
|