libdaemon is a lightweight C library that eases the process of writing UNIX daemons. It contains a daemonizing fork() wrapper, a powerful syslog() wrapper, PID file management, and signal serialization.
| Tags | Software Development Libraries |
|---|---|
| Licenses | GPL |
| Operating Systems | Unix POSIX |
| Implementation | C |
Recent releases


Changes: This release makes daemon_close_all() actually work properly.


Changes: This release will automatically detect whether lynx is installed. It properly sets errno on every error condition. The function daemon_close_all() has been added to close all open file descriptors except a given set. daemon_logv() has been added, which is identical to daemon_log(), but takes a va_list argument. daemon_execv() has been added in similar style. There are other fixes.


Changes: Logging was made compatible with daemons running in a chroot() environment.


Changes: Ported to FreeBSD, NetBSD, OpenBSD, Darwin, Solaris, and Cygwin. Some minor header file cleanups. The access mode of PID files has been fixed. There are other cleanups, and the license has changed from the GPL to the LGPL.


Changes: Proper PID file locking is now done. The documentation was updated.
A simple tool for managing the urge to do "just one more thing".