diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-05 02:42:41 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-05 02:52:50 +0900 |
| commit | eb5ee4fece0327b1183ae823d68e4cf4e3e1ced0 (patch) | |
| tree | 64e1c411e9d0a29637982519b9bd3a5ff6642d1a /internal/app/shim.go | |
| parent | 9462af08f38fefe40d985383d8825258a6d1f0a8 (diff) | |
internal/app: modularise outcome finalise
This is the initial effort of splitting up host and container side of finalisation for params to shim. The new layout also enables much finer grained unit testing of each step, as well as partition access to per-app state for each step.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/shim.go')
| -rw-r--r-- | internal/app/shim.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/internal/app/shim.go b/internal/app/shim.go index 8c860e1b..417f793c 100644 --- a/internal/app/shim.go +++ b/internal/app/shim.go @@ -148,13 +148,8 @@ func ShimMain() { z.Params = *params.Container z.Stdin, z.Stdout, z.Stderr = os.Stdin, os.Stdout, os.Stderr + // bounds and default enforced in finalise.go z.WaitDelay = params.WaitDelay - if z.WaitDelay == 0 { - z.WaitDelay = DefaultShimWaitDelay - } - if z.WaitDelay > MaxShimWaitDelay { - z.WaitDelay = MaxShimWaitDelay - } if err := z.Start(); err != nil { printMessageError("cannot start container:", err) |
