From 940ee00ffee9208a244a99ff085a981c1af1d7c4 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 29 Jul 2025 02:38:17 +0900 Subject: container/init: configurable lingering process wait delay Signed-off-by: Ophestra --- container/init.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'container/init.go') diff --git a/container/init.go b/container/init.go index 9c4f810a..d4fce6e6 100644 --- a/container/init.go +++ b/container/init.go @@ -17,9 +17,6 @@ import ( ) const ( - // time to wait for linger processes after death of initial process - residualProcessTimeout = 5 * time.Second - /* intermediate tmpfs mount point this path might seem like a weird choice, however there are many good reasons to use it: @@ -358,7 +355,7 @@ func Init(prepare func(prefix string), setVerbose func(verbose bool)) { msg.Verbosef("initial process exited with status %#x", w.wstatus) } - go func() { time.Sleep(residualProcessTimeout); close(timeout) }() + go func() { time.Sleep(params.AdoptWaitDelay); close(timeout) }() } case <-done: msg.BeforeExit() -- cgit v1.3.1