Don't create a new session; it breaks `-service stop`.

This commit is contained in:
Frank Denis 2018-06-14 19:13:52 +02:00
parent 7f8b8d043e
commit 34e78a2446
1 changed files with 0 additions and 1 deletions

View File

@ -49,7 +49,6 @@ func (proxy *Proxy) dropPrivilege(userStr string, fds []*os.File) {
cmd.ExtraFiles = fds
cmd.SysProcAttr = &syscall.SysProcAttr{}
cmd.SysProcAttr.Credential = &syscall.Credential{Uid: uint32(uid), Gid: uint32(gid)}
cmd.SysProcAttr.Setsid = true
dlog.Notice("Dropping privileges")
if err := cmd.Run(); err != nil {
dlog.Fatal(err)