Pass proper creds to xpra.Stop()

master
xSmurf 10 years ago
parent 0ff84bb605
commit ce1026bced

@ -483,7 +483,11 @@ func (st *initState) shutdownXpra() {
if st.xpra == nil { if st.xpra == nil {
return return
} }
out, err := st.xpra.Stop() creds := &syscall.Credential{
Uid: uint32(st.uid),
Gid: uint32(st.gid),
}
out, err := st.xpra.Stop(creds)
if err != nil { if err != nil {
st.log.Warning("Error running xpra stop: %v", err) st.log.Warning("Error running xpra stop: %v", err)
return return

Loading…
Cancel
Save