diff options
Diffstat (limited to 'ldd/exec.go')
| -rw-r--r-- | ldd/exec.go | 10 |
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() |
