aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--helper/args.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/helper/args.go b/helper/args.go
index bbb66f0c..8ef07f4a 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")
}