dbus: lock for read in public args interface
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
a48386bd56
commit
72fb13dccc
@ -66,7 +66,14 @@ func (p *Proxy) String() string {
|
|||||||
return "(unsealed dbus proxy)"
|
return "(unsealed dbus proxy)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BwrapStatic builds static bwrap args. This omits any fd-dependant args.
|
||||||
func (p *Proxy) BwrapStatic() []string {
|
func (p *Proxy) BwrapStatic() []string {
|
||||||
|
p.lock.RLock()
|
||||||
|
defer p.lock.RUnlock()
|
||||||
|
|
||||||
|
if p.bwrap == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return p.bwrap.Args()
|
return p.bwrap.Args()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user