From 420c721c7da46ab1c633b019441b7b623215fd12 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 17 Mar 2026 17:02:36 +0900 Subject: all: raise timeout defaults This avoids timing out on systems running very slowly. Signed-off-by: Ophestra --- ldd/exec.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ldd') diff --git a/ldd/exec.go b/ldd/exec.go index e59dfcaa..567f33ca 100644 --- a/ldd/exec.go +++ b/ldd/exec.go @@ -29,7 +29,7 @@ const ( lddName = "ldd" // lddTimeout is the maximum duration ldd(1) is allowed to ran for before it // is terminated. - lddTimeout = 4 * time.Second + lddTimeout = 15 * time.Second ) // Resolve runs ldd(1) in a strict sandbox and connects its stdout to a [Decoder]. @@ -96,7 +96,8 @@ func Resolve( if err := z.Wait(); err != nil { m := stderr.Bytes() - if bytes.Contains(m, []byte(msgStaticSuffix)) || bytes.Contains(m, []byte(msgStaticGlibc)) { + if bytes.Contains(m, []byte(msgStaticSuffix)) || + bytes.Contains(m, []byte(msgStaticGlibc)) { return nil, nil } -- cgit v1.3.1