From c74c269b66770f0eddde255d2805b79f274409e9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 28 Feb 2026 20:42:33 +0900 Subject: container: use /proc/self/exe directly This is a more reliable form of pathname to self and also cheaper than os.Executable. Signed-off-by: Ophestra --- container/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'container/container.go') diff --git a/container/container.go b/container/container.go index a6457714..8b5ec01d 100644 --- a/container/container.go +++ b/container/container.go @@ -525,7 +525,7 @@ func New(ctx context.Context, msg message.Msg) *Container { p := &Container{ctx: ctx, msg: msg, Params: Params{Ops: new(Ops)}} c, cancel := context.WithCancel(ctx) p.cancel = cancel - p.cmd = exec.CommandContext(c, MustExecutable(msg)) + p.cmd = exec.CommandContext(c, fhs.ProcSelfExe) return p } -- cgit v1.3.1