mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-16 22:01:15 +00:00
added comment on why not os.chdir
This commit is contained in:
@@ -60,7 +60,8 @@ def do_fork():
|
||||
pid = os.fork()
|
||||
if pid > 0:
|
||||
return pid
|
||||
|
||||
# This is done as a 'good practice' for daemons, but we need to keep the cwd
|
||||
# leaving it here as a note that we KNOW its good practice but are not doing it on purpose.
|
||||
#os.chdir("/")
|
||||
os.setsid()
|
||||
os.umask(0)
|
||||
|
||||
Reference in New Issue
Block a user