aboutsummaryrefslogtreecommitdiffhomepage
path: root/ldd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-17 17:02:36 +0900
committerOphestra <cat@gensokyo.uk>2026-03-17 17:04:06 +0900
commit420c721c7da46ab1c633b019441b7b623215fd12 (patch)
tree8443996fcee8a5df3427708ecdd353fba54f941b /ldd
parentbac583f89edd1360150143ff51f7264c01aa69ec (diff)
all: raise timeout defaults
This avoids timing out on systems running very slowly. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'ldd')
-rw-r--r--ldd/exec.go5
1 files changed, 3 insertions, 2 deletions
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
}