mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
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
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user