Package pymeterlib :: Module Daemon
[show private | hide private]
[frames | no frames]

Module pymeterlib.Daemon

Disk And Execution MONitor (Daemon)

Default daemon behaviors (they can be modified): 1.) Ignore SIGHUP signals. 2.) Default current working directory to the "/" directory. 3.) Set the current file creation mode mask to 0. 4.) Close all open files (0 to [SC_OPEN_MAX or 256]). 5.) Redirect standard I/O streams to "/dev/null".

Failed fork() calls will return a tuple: (errno, strerror). This behavior can be modified to meet your program's needs.

Resources: Advanced Programming in the Unix Environment: W. Richard Stevens Unix Network Programming (Volume 1): W. Richard Stevens http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16
Function Summary
  createDaemon()
Detach a process from the controlling terminal and run it in the background as a daemon.

Variable Summary
str __author__ = 'Chad J. Schroeder'
str __version__ = '$Id$'

Function Details

createDaemon()

Detach a process from the controlling terminal and run it in the background as a daemon.

Variable Details

__author__

Type:
str
Value:
'Chad J. Schroeder'                                                    

__version__

Type:
str
Value:
'$Id$'                                                                 

Generated by Epydoc 2.1 on Fri Mar 17 09:16:19 2006 http://epydoc.sf.net