From 6e7ddb2d2ec6b163dc2c178bc4d73b5943f51206 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 15 Mar 2025 23:57:44 +0900 Subject: helper: eliminate commandContext replacement This is done more cleanly by modifying Args in cmdF. Signed-off-by: Ophestra --- helper/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helper/cmd.go') diff --git a/helper/cmd.go b/helper/cmd.go index 5b66afe7..4fe978a2 100644 --- a/helper/cmd.go +++ b/helper/cmd.go @@ -42,7 +42,7 @@ func newHelperCmd( ) (cmd *helperCmd, args []string) { cmd = new(helperCmd) cmd.helperFiles, args = newHelperFiles(ctx, wt, stat, argF, extraFiles) - cmd.Cmd = commandContext(ctx, name) + cmd.Cmd = exec.CommandContext(ctx, name) cmd.Cmd.Cancel = func() error { return cmd.Process.Signal(syscall.SIGTERM) } cmd.WaitDelay = WaitDelay return -- cgit v1.3.1