.\" openfwtk project: daemonize.3 1-Nov-2000 .TH daemonize 3 .SH NAME daemonize() \- a simple fork function for non-network daemons .SH SYNOPSIS .nf #include "fwfunc.h" .fi .sp int \fBdaemonize\fP() .SH DESCRIPTION The \fIdeamonize\fP function sets SIGHUP and SIGALRM hadnlers to ignore, then forks, parent exits and child starts a new session. `Daemon running' message is recorded into syslog. .SH RETURN VALUES 0 if ok, -1 if fork fails. .SH SEE ALSO signal(3),setsid(2) .SH HISTORY present in fwtk since v1