로그 추가

This commit is contained in:
2023-06-28 18:15:13 +09:00
parent 06bc095ea4
commit d3442be5dc

View File

@ -70,7 +70,8 @@ func main() {
stdlog.Println("wait for terminating of", args[3])
proc, err := os.FindProcess(pid)
if err != nil {
stdlog.Fatal(err)
stdlog.Println("FindProcess error :", err)
break
}
err = proc.Signal(syscall.Signal(0))
@ -81,6 +82,8 @@ func main() {
time.Sleep(time.Second)
}
stdlog.Println("target is terminated")
selfext, _ := os.Executable()
selfext = path.Base(selfext)
nextArgs := args[4:]