Don't create a new session; it breaks `-service stop`.
This commit is contained in:
parent
7f8b8d043e
commit
34e78a2446
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue