Commit graph

2 commits

Author SHA1 Message Date
joerg
583ab85693 DESTDIR support 2009-02-07 17:51:59 +00:00
ahoka
75661c1d88 Import libdaemon-0.12 as devel/libdaemon.
libdaemon is a lightweight C library that eases the writing of UNIX
daemons. It consists of the following parts:

* 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
  to syslog.

APIs like these are used in most daemon software available. It is not
that simple to get it done right and code duplication is not a goal.
2008-12-20 17:24:48 +00:00