syspp::Daemon Class Reference

#include <Daemon.h>

Public Member Functions

virtual ~Daemon ()
 Daemon ()

Static Public Member Functions

static void Daemonize_light ()
static void Daemonize_full ()

Detailed Description

Definition at line 13 of file Daemon.h.


Constructor & Destructor Documentation

syspp::Daemon::~Daemon (  )  [virtual]

Definition at line 173 of file Daemon.cpp.

syspp::Daemon::Daemon (  ) 

Definition at line 169 of file Daemon.cpp.

Here is the call graph for this function:


Member Function Documentation

void syspp::Daemon::Daemonize_full (  )  [static]

Runtime setting:

  • Changes to "/" directory
  • Forks off and lets the parent die Ignores the following Signals SIGINT SIGQUIT SIGILL Illegal instruction (ANSI). SIGTRAP Trace trap (POSIX). SIGABRT Abort (ANSI). SIGIOT IOT trap (4.2 BSD). SIGBUS BUS error (4.2 BSD). SIGFPE Floating-point exception (ANSI). SIGUSR1 User-defined signal 1 (POSIX). SIGUSR2 User-defined signal 2 (POSIX). SIGALRM Alarm clock (POSIX). SIGSTKFLT Stack fault. SIGTSTP Keyboard stop (POSIX). SIGTTIN Background read from tty (POSIX). SIGTTOU Background write to tty (POSIX). SIGXCPU CPU limit exceeded (4.2 BSD). SIGXFSZ File size limit exceeded (4.2 BSD). SIGVTALRM Virtual alarm clock (4.2 BSD). SIGPROF Profiling alarm clock (4.2 BSD). SIGWINCH Window size change (4.3 BSD, Sun). SIGPOLL Pollable event occurred (System V). SIGIO I/O now possible (4.2 BSD). SIGPWR Power failure restart (System V). SIGSYS Bad system call.

Definition at line 76 of file Daemon.cpp.

Here is the caller graph for this function:

void syspp::Daemon::Daemonize_light (  )  [static]

Blocks the following signals: SIGPIPE SIGHUP SIGCLD SIGCHLD SIGURG Should always be applied.

Definition at line 25 of file Daemon.cpp.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Tue Dec 28 16:55:16 2010 for Com++ by  doxygen 1.6.3