From f7bd28118c4ac34a9a444073b31ca8f2579188f3 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 29 Jul 2025 03:06:49 +0900 Subject: hst: configurable wait delay This is useful for programs that take a long time to clean up. Signed-off-by: Ophestra --- internal/app/container_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/app/container_linux.go') diff --git a/internal/app/container_linux.go b/internal/app/container_linux.go index baea57d9..5efd3de7 100644 --- a/internal/app/container_linux.go +++ b/internal/app/container_linux.go @@ -35,7 +35,7 @@ func newContainer(s *hst.ContainerConfig, os sys.State, uid, gid *int) (*contain // the container is canceled when shim is requested to exit or receives an interrupt or termination signal; // this behaviour is implemented in the shim - ForwardCancel: !s.ImmediateTermination, + ForwardCancel: s.WaitDelay >= 0, } { -- cgit v1.3.1