summaryrefslogtreecommitdiff
path: root/bin/ansible-connection
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2017-06-19 17:16:04 -0400
committerBrian Coca <brian.coca+git@gmail.com>2017-06-19 17:17:10 -0400
commit9730d965179d3d4c34b136df24a813eb91ed8a61 (patch)
tree15afee88e6c1a1f6ce525bf83d8bd89523462fd1 /bin/ansible-connection
parente08f068dcaec502a1bcd39f0721c0de50c8b6187 (diff)
downloadansible-9730d965179d3d4c34b136df24a813eb91ed8a61.tar.gz
added comment on why not os.chdir
Diffstat (limited to 'bin/ansible-connection')
-rwxr-xr-xbin/ansible-connection3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ansible-connection b/bin/ansible-connection
index de118aecb8..df301c55e0 100755
--- a/bin/ansible-connection
+++ b/bin/ansible-connection
@@ -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)