From 1b9408864f7f575b83b8f822e7551772ccd37009 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 17 Mar 2025 22:36:39 +0900 Subject: sandbox: pass cmd to cancel function This is not usually in scope otherwise. Signed-off-by: Ophestra --- helper/container.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'helper') diff --git a/helper/container.go b/helper/container.go index 33ab1e3a..6872f55b 100644 --- a/helper/container.go +++ b/helper/container.go @@ -5,6 +5,7 @@ import ( "errors" "io" "os" + "os/exec" "slices" "sync" @@ -61,7 +62,7 @@ func (h *helperContainer) Start() error { h.Env = append(h.Env, FortifyStatus+"=1") // stat is populated on fulfill - h.Cancel = func() error { return h.stat.Close() } + h.Cancel = func(*exec.Cmd) error { return h.stat.Close() } } else { h.Env = append(h.Env, FortifyStatus+"=0") } -- cgit v1.3.1