mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
added comment on why not os.chdir
This commit is contained in:
parent
e08f068dca
commit
9730d96517
1 changed files with 2 additions and 1 deletions
|
@ -60,7 +60,8 @@ def do_fork():
|
||||||
pid = os.fork()
|
pid = os.fork()
|
||||||
if pid > 0:
|
if pid > 0:
|
||||||
return pid
|
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.chdir("/")
|
||||||
os.setsid()
|
os.setsid()
|
||||||
os.umask(0)
|
os.umask(0)
|
||||||
|
|
Loading…
Reference in a new issue