Commit graph

7 commits

Author SHA1 Message Date
tnn
a9841e8f40 portability fix: include <unistd.h> instead of <sys/unistd.h> 2009-12-20 23:29:02 +00:00
tnn
395521b7ed Don't feed CFLAGS to linker when building example program. 2009-12-20 23:22:35 +00:00
wiz
cc37812d38 Update to 0.14:
add daemon_set_verbosity() call; numerous updates
2009-10-31 02:54:34 +00:00
hasso
186f0b45fa More portable fix for upper bound for signals problem pulled out from
upstream git repo. Should fix build on Solaris, FreeBSD and DragonFly.

If there is still need for Darwin specific fix with __DARWIN_NSIG (there is
no NSIG or it's semantically different like NSIG and _NSIG in Linux), please
add it back.
2009-08-18 05:40:44 +00:00
tron
0f61c94e6b Fix build problem under Mac OS X (Leopard?). 2009-08-17 10:26:17 +00:00
wiz
62d538ffa6 Update to 0.13, set LICENSE.
Add daemon_reset_sigs() and daemon_unblock_sigs() calls for resetting
signal handlers to sensible states; improve error handling.
2009-08-16 14:24:01 +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