Skip to content

Commit

Permalink
fix 1487
Browse files Browse the repository at this point in the history
  • Loading branch information
directionless committed Nov 30, 2023
1 parent e38d812 commit c5c7bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/osquery/runtime/runtime_helpers_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ func killProcessGroup(cmd *exec.Cmd) error {
defer cancel()

// some discussion here https://github.com/golang/dep/pull/857
cmd, err := allowedcmd.Taskkill(ctx, "/F", "/T", "/PID", fmt.Sprint(cmd.Process.Pid))
if err != nil {
cmd := exec.CommandContext(ctx, "taskkill", "/F", "/T", "/PID", fmt.Sprint(cmd.Process.Pid))

Check failure on line 28 in pkg/osquery/runtime/runtime_helpers_windows.go

View workflow job for this annotation

GitHub Actions / launcher (windows-latest)

no new variables on left side of :=
if err := cmd.Run(); err != nil {
return fmt.Errorf("creating command: %w", err)
}

Expand Down

0 comments on commit c5c7bd9

Please sign in to comment.