Protium
Math and Design Features
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Protium::Threads::Daemon Class Reference

#include <Daemon.h>

Public Member Functions

 Daemon ()
 
void closeFileDescriptors ()
 
bool isGood ()
 
void killGrandParent ()
 
void loop ()
 
void setFileMask ()
 
void setSID ()
 
void setToRootFile ()
 
void start ()
 

Private Attributes

pid_t pid
 
pid_t sid
 

Detailed Description

Definition at line 8 of file Daemon.h.

Constructor & Destructor Documentation

Protium::Threads::Daemon::Daemon ( )
inline

Definition at line 13 of file Daemon.h.

Member Function Documentation

void Protium::Threads::Daemon::closeFileDescriptors ( )
inline

Definition at line 45 of file Daemon.h.

bool Protium::Threads::Daemon::isGood ( )
inline

Definition at line 22 of file Daemon.h.

void Protium::Threads::Daemon::killGrandParent ( )
inline

Definition at line 26 of file Daemon.h.

void Protium::Threads::Daemon::loop ( )
inline

Definition at line 51 of file Daemon.h.

void Protium::Threads::Daemon::setFileMask ( )
inline

Definition at line 30 of file Daemon.h.

void Protium::Threads::Daemon::setSID ( )
inline

Definition at line 33 of file Daemon.h.

void Protium::Threads::Daemon::setToRootFile ( )
inline

Definition at line 39 of file Daemon.h.

void Protium::Threads::Daemon::start ( )
inline

Definition at line 17 of file Daemon.h.

Member Data Documentation

pid_t Protium::Threads::Daemon::pid
private

Definition at line 10 of file Daemon.h.

pid_t Protium::Threads::Daemon::sid
private

Definition at line 11 of file Daemon.h.