From 2eb3b1129bf73f8e2a0b46683af3139498fa89fd Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 14 Oct 2026 18:23:45 +0900 Subject: hst: pass through adopt wait delay with bounds This is a useful value to customise, primarily useful for test suites but can also generally improve exit latency for stubborn applications. Signed-off-by: Ophestra --- hst/container.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hst') diff --git a/hst/container.go b/hst/container.go index 824b0982..c4cd2712 100644 --- a/hst/container.go +++ b/hst/container.go @@ -141,6 +141,13 @@ type ContainerConfig struct { // [WaitDelayDefault]. WaitDelay time.Duration `json:"wait_delay,omitempty"` + // Duration in nanoseconds to wait for lingering processes after the initial + // process terminates. + // + // Defaults to five seconds if zero or greater than five seconds. Values + // lesser than zero is equivalent to zero. + AdoptWaitDelay time.Duration `json:"adopt_wait_delay,omitempty"` + // Initial process environment variables. Env map[string]string `json:"env"` -- cgit v1.3.1