Merge branch 'master' into kd-live

This commit is contained in:
2023-06-28 18:15:25 +09:00

View File

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