X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=certmaster%2Futils.py;h=22b0afbdf7f580e438957b4f15f85c09702d3759;hp=61721ac7c255d6e7197bb426089d1f07b57ba4c1;hb=d512d680d6fb50cdeae615492fb35741d44bd3a4;hpb=37f80fb5318f344c4a0db4b53d6e314a5223ddb2 diff --git a/certmaster/utils.py b/certmaster/utils.py index 61721ac..22b0afb 100755 --- a/certmaster/utils.py +++ b/certmaster/utils.py @@ -48,6 +48,10 @@ def daemonize(pidfile=None): pid = os.fork() if pid > 0: sys.exit(0) + os.close(0) + os.close(1) + os.close(2) + os.cwd("/") os.setsid() os.umask(0) pid = os.fork()