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:
parent
b9962d2389
commit
e27b7af1e6
1 changed files with 0 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue