From 67ec82ae1b60c9f9db0f15dd06e0246312343bea Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 18 Oct 2025 18:03:09 +0900 Subject: [PATCH] ldd/exec: raise timeout This mostly helps with tests. Signed-off-by: Ophestra --- ldd/exec.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ldd/exec.go b/ldd/exec.go index ef5bf7b..fc7bc50 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()