diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-14 18:23:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-14 18:23:45 +0900 |
| commit | 2eb3b1129bf73f8e2a0b46683af3139498fa89fd (patch) | |
| tree | 171efa80593efac951c775d7f451c92ddf26a12f /hst/container.go | |
| parent | 72d7e6da4cba108f17749921755f4405eb1a5962 (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'hst/container.go')
| -rw-r--r-- | hst/container.go | 7 |
1 files changed, 7 insertions, 0 deletions
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"` |
