summaryrefslogtreecommitdiff
path: root/utilities
diff options
context:
space:
mode:
authorMonty Taylor <mordred@redhat.com>2016-09-12 11:31:40 -0500
committerBrian Coca <bcoca@users.noreply.github.com>2016-09-12 12:31:40 -0400
commit6ba5dc3188620f946f3515bf57e600bb4a8d6059 (patch)
treef95462fffcbffe044331e1ae4a7c2abf79e407f3 /utilities
parentdc7ba8f3c967c26182d64199b7fb04c98d72ef40 (diff)
downloadansible-modules-core-6ba5dc3188620f946f3515bf57e600bb4a8d6059.tar.gz
Don't change to root dir in async_wrapper (#4779)
The daemonizing code here is taken from an ActiveState recipe, which includes changing to / as a general best practice. While that is normally true to allow for deleting the directory that the daemon process started in, in this case it is not relevant as this is not intended to be an actual long-running daemon. Issue ansible/ansible#17466
Diffstat (limited to 'utilities')
-rw-r--r--utilities/logic/async_wrapper.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/utilities/logic/async_wrapper.py b/utilities/logic/async_wrapper.py
index b1adb9c5..5c658d68 100644
--- a/utilities/logic/async_wrapper.py
+++ b/utilities/logic/async_wrapper.py
@@ -52,7 +52,6 @@ def daemonize_self():
sys.exit("fork #1 failed: %d (%s)\n" % (e.errno, e.strerror))
# decouple from parent environment
- os.chdir("/")
os.setsid()
os.umask(int('022', 8))