Skip to content

Commit

Permalink
added comment on why not os.chdir
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoca committed Jun 19, 2017
1 parent e08f068 commit 9730d96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/ansible-connection
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9730d96

Please sign in to comment.