From 16409b37a2de7dbc112e113481a2f2c45f9f09f8 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 16 Sep 2025 02:22:05 +0900 Subject: 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 --- internal/app/shim.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/app/shim.go') 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. -- cgit v1.3.1