From d3442be5dccd604b59e1b7a2bfb2350e8f964eb8 Mon Sep 17 00:00:00 2001 From: mountain Date: Wed, 28 Jun 2023 18:15:13 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- replacer/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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:]