LIBSSDP
 All Classes Files Functions Variables Typedefs Macros
Functions
daemon.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void daemonize (void)
 

Detailed Description

Header file for daemon.c.

Definition in file daemon.h.

Function Documentation

void daemonize ( void  )

Prepares the process to run as a daemon.

Daemon preparation steps:

  1. Set up rules for ignoring all (tty related) signals that can stop the process
  2. Fork to child and exit parent to free the terminal and the starting process
  3. Change PGID to ignore parent stop signals and disassociate from controlling terminal (two solutions, normal and BSD)

Definition at line 21 of file daemon.c.