summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/daemonize.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/daemonize.py')
-rw-r--r--bitbake/lib/bb/daemonize.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bitbake/lib/bb/daemonize.py b/bitbake/lib/bb/daemonize.py
index 898820b069..346a618582 100644
--- a/bitbake/lib/bb/daemonize.py
+++ b/bitbake/lib/bb/daemonize.py
@@ -12,8 +12,11 @@ A failed call to fork() now raises an exception.
12 12
13References: 13References:
14 1) Advanced Programming in the Unix Environment: W. Richard Stevens 14 1) Advanced Programming in the Unix Environment: W. Richard Stevens
15 2) Unix Programming Frequently Asked Questions: 15 http://www.apuebook.com/apue3e.html
16 http://www.erlenstar.demon.co.uk/unix/faq_toc.html 16 2) The Linux Programming Interface: Michael Kerrisk
17 http://man7.org/tlpi/index.html
18 3) Unix Programming Frequently Asked Questions:
19 http://www.faqs.org/faqs/unix-faq/programmer/faq/
17 20
18Modified to allow a function to be daemonized and return for 21Modified to allow a function to be daemonized and return for
19bitbake use by Richard Purdie 22bitbake use by Richard Purdie
@@ -146,7 +149,7 @@ def createDaemon(function, logfile):
146 # OR 149 # OR
147 # 150 #
148 # Use the getrlimit method to retrieve the maximum file descriptor number 151 # Use the getrlimit method to retrieve the maximum file descriptor number
149 # that can be opened by this process. If there is not limit on the 152 # that can be opened by this process. If there is no limit on the
150 # resource, use the default value. 153 # resource, use the default value.
151 # 154 #
152 import resource # Resource usage information. 155 import resource # Resource usage information.