removed chdir / as it breaks tasks

fixes #17466
This commit is contained in:
Brian Coca 2016-09-12 12:29:14 -04:00 committed by Matt Clay
parent c01328b597
commit 627da622fe

View file

@ -51,7 +51,7 @@ def daemonize_self():
e = sys.exc_info()[1] e = sys.exc_info()[1]
sys.exit("fork #1 failed: %d (%s)\n" % (e.errno, e.strerror)) sys.exit("fork #1 failed: %d (%s)\n" % (e.errno, e.strerror))
# decouple from parent environment # decouple from parent environment (does not chdir / to keep the directory context the same as for non async tasks)
os.setsid() os.setsid()
os.umask(int('022', 8)) os.umask(int('022', 8))