2 .TH daemonize 3 "6 January 2007" "Straylight/Edgeware" "mLib utilities library"
4 daemonize \- become a background process
9 .B "#include <mLib/daemonize.h>"
11 .B "void detachtty(void);"
12 .B "int daemonize(void);"
17 function causes the current process to become a background process. It
18 detaches from its controlling terminal and arranges never to acquire
19 another controlling terminal. If it fails for some reason (probably
26 on success, it returns 0.
30 does half of the job of
32 it detaches from its controlling terminal, and calls
36 so that it can't acquire a new controlling terminal in future. Errors
41 Mark Wooding, <mdw@distorted.org.uk>