You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
329 B
Go

package main
import (
"flag"
"fmt"
"strconv"
"syscall"
)
func main() {
flag.Parse()
if flag.NArg() < 1 {
fmt.Println("사용법: insert pid")
return
}
var pid int
pid, _ = strconv.Atoi(flag.Arg(0))
//syscall.Kill(syscall.Getpid(), syscall.SIGINT)
syscall.Kill(pid, syscall.SIGINT)
fmt.Println("kill pid")
}