Commit dc602512 authored by Frank Denis's avatar Frank Denis

Don't call PledgeChild() too early

parent 127d4f0e
......@@ -193,6 +193,9 @@ func ConfigLoad(proxy *Proxy, svcFlag *string) error {
flag.Parse()
if *child {
PledgeChild()
}
if *svcFlag == "stop" || *svcFlag == "uninstall" {
return nil
}
......
......@@ -39,7 +39,6 @@ func (proxy *Proxy) dropPrivilege(userStr string, fds []*os.File) {
}
SystemDNotify()
PledgeChild()
args = args[1:]
args = append(args, "-child")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment