From 06bc095ea4774fcd48ccb417d2e8c1c65c91da2d Mon Sep 17 00:00:00 2001 From: mountain Date: Wed, 28 Jun 2023 18:00:51 +0900 Subject: [PATCH] =?UTF-8?q?=ED=94=84=EB=A1=9C=EC=84=B8=EC=8A=A4=20?= =?UTF-8?q?=EC=A2=85=EB=A3=8C=20=ED=8C=90=EB=B3=84=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- replacer/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/replacer/main.go b/replacer/main.go index 5cb47c4..3a84ce1 100644 --- a/replacer/main.go +++ b/replacer/main.go @@ -9,6 +9,7 @@ import ( "os/exec" "path" "strconv" + "syscall" "time" ) @@ -71,8 +72,9 @@ func main() { if err != nil { stdlog.Fatal(err) } - state, _ := proc.Wait() - if state == nil { + + err = proc.Signal(syscall.Signal(0)) + if err == nil { break }