aboutsummaryrefslogtreecommitdiffhomepage
path: root/ldd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-18 18:03:09 +0900
committerOphestra <cat@gensokyo.uk>2025-10-18 18:03:09 +0900
commit67ec82ae1b60c9f9db0f15dd06e0246312343bea (patch)
tree7e8bc8463bd4e75b1e7a2e91bebaba8164209556 /ldd
parentf6f0cb56ae64a47dcb948134e19afbd241452fd9 (diff)
ldd/exec: raise timeout
This mostly helps with tests. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'ldd')
-rw-r--r--ldd/exec.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/ldd/exec.go b/ldd/exec.go
index ef5bf7b8..fc7bc508 100644
--- a/ldd/exec.go
+++ b/ldd/exec.go
@@ -16,17 +16,17 @@ import (
"hakurei.app/message"
)
-const (
- lddName = "ldd"
- lddTimeout = 2 * time.Second
-)
-
var (
msgStatic = []byte("Not a valid dynamic program")
msgStaticGlibc = []byte("not a dynamic executable")
)
func Exec(ctx context.Context, msg message.Msg, p string) ([]*Entry, error) {
+ const (
+ lddName = "ldd"
+ lddTimeout = 4 * time.Second
+ )
+
c, cancel := context.WithTimeout(ctx, lddTimeout)
defer cancel()