diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-15 23:57:44 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-16 00:01:25 +0900 |
| commit | 6e7ddb2d2ec6b163dc2c178bc4d73b5943f51206 (patch) | |
| tree | 37ffe1564782377c1983909362ed6109c3f06b28 /helper/cmd.go | |
| parent | bac4e67867faa7d8274b684575140a65827d3a4c (diff) | |
helper: eliminate commandContext replacement
This is done more cleanly by modifying Args in cmdF.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/cmd.go')
| -rw-r--r-- | helper/cmd.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
