diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-17 22:36:39 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-17 22:36:39 +0900 |
| commit | 1b9408864f7f575b83b8f822e7551772ccd37009 (patch) | |
| tree | ff1f52b39080386564012cb488e7e1a4864a5eaa /helper | |
| parent | cc89dbdf63dd8d6025a2158562295a74f923765e (diff) | |
sandbox: pass cmd to cancel function
This is not usually in scope otherwise.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper')
| -rw-r--r-- | helper/container.go | 3 |
1 files changed, 2 insertions, 1 deletions
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") } |
