aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/shim.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-16 02:22:05 +0900
committerOphestra <cat@gensokyo.uk>2025-09-16 02:23:19 +0900
commit16409b37a2de7dbc112e113481a2f2c45f9f09f8 (patch)
tree70cdf40bb669fcb4278842bb27b09652a2448092 /internal/app/shim.go
parenta2a291791c6447528d3b1abc1ec57c7b213730b6 (diff)
internal/app: compensate shim timeout
This catches cases where the shim has somehow locked up, so it should wait out the full shim WaitDelay as well. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/shim.go')
-rw-r--r--internal/app/shim.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/app/shim.go b/internal/app/shim.go
index 5eaf8333..e38104c9 100644
--- a/internal/app/shim.go
+++ b/internal/app/shim.go
@@ -45,8 +45,10 @@ const (
// ShimExitOrphan is returned when the shim is orphaned before monitor delivers a signal.
ShimExitOrphan = 3
+ // DefaultShimWaitDelay is used when WaitDelay has its zero value.
DefaultShimWaitDelay = 5 * time.Second
- MaxShimWaitDelay = 30 * time.Second
+ // MaxShimWaitDelay is used instead if WaitDelay exceeds its value.
+ MaxShimWaitDelay = 30 * time.Second
)
// ShimMain is the main function of the shim process and runs as the unconstrained target user.