diff --git a/helper/args.go b/helper/args.go index bbb66f0..8ef07f4 100644 --- a/helper/args.go +++ b/helper/args.go @@ -62,6 +62,9 @@ func (a *argsFD) Seal(args []string) error { } func (a *argsFD) WriteTo(w io.Writer) (int64, error) { + a.RLock() + defer a.RUnlock() + if a.seal == nil { panic("attempted to activate unsealed args") }