Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
kataras committed Sep 27, 2022
1 parent b8a4895 commit f1e2609
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@

package main

import "os/exec"
import (
"os/exec"
"runtime"
"strconv"
)

func wrapCmd(cmd *exec.Cmd) {}

func killCmd(cmd *exec.Cmd) {
func killCmd(cmd *exec.Cmd) error {
switch runtime.GOOS {
case "windows":
err := exec.Command("taskkill", "/F", "/T", "/PID", strconv.Itoa(cmd.Process.Pid)).Run()
Expand Down

0 comments on commit f1e2609

Please sign in to comment.