aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-08 18:58:51 +0900
committerOphestra <cat@gensokyo.uk>2026-01-08 18:58:51 +0900
commitf2430b5f5ef7ac0361d1c4976b7ec7bebaa15f63 (patch)
treef0ee2e34557583b9d5d2479b90cf389bff346313
parent863e6f5db6f14d9b881427fb4fb2ceeaa0e8e4ee (diff)
internal/pkg: use short wait delay
The cure is condemned at the point of cancellation and all of its state is destroyed by the deferred cleanup, so it makes little sense to wait for it much. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/pkg/exec.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/pkg/exec.go b/internal/pkg/exec.go
index 1ace5991..e3b6b437 100644
--- a/internal/pkg/exec.go
+++ b/internal/pkg/exec.go
@@ -194,7 +194,7 @@ func (a *execArtifact) Cure(c *CureContext) (err error) {
const (
// execWaitDelay is passed through to [container.Params].
- execWaitDelay = 15 * time.Second
+ execWaitDelay = time.Nanosecond
)
// cure is like Cure but allows optional host net namespace. This is used for
@@ -294,7 +294,6 @@ func (a *execArtifact) cure(c *CureContext, hostNet bool) (err error) {
defer cancel()
z := container.New(ctx, a.msg)
- z.ForwardCancel = true
z.WaitDelay = execWaitDelay
z.SeccompPresets |= std.PresetStrict
z.ParentPerm = 0700