diff --git a/replacer/main.go b/replacer/main.go index 3a84ce1..a3fb537 100644 --- a/replacer/main.go +++ b/replacer/main.go @@ -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:]