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. |
createDaemon()
Detach a process from the controlling terminal and run it in the
background as a daemon.
-
|
__author__
-
- Type:
-
str
- Value:
|
__version__
-
- Type:
-
str
- Value:
|