diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-07-29 03:06:49 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-07-29 03:06:49 +0900 |
| commit | f7bd28118c4ac34a9a444073b31ca8f2579188f3 (patch) | |
| tree | d094700b4d367250e9de16226cc7cc49a0dc3b55 /internal/app/container_linux.go | |
| parent | 940ee00ffee9208a244a99ff085a981c1af1d7c4 (diff) | |
hst: configurable wait delay
This is useful for programs that take a long time to clean up.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/container_linux.go')
| -rw-r--r-- | internal/app/container_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
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, } { |
