From fa8b78efedc000781b260d93f7413dbac8150468 Mon Sep 17 00:00:00 2001 From: mountain Date: Tue, 27 Jun 2023 11:17:16 +0900 Subject: [PATCH] =?UTF-8?q?restart=20=EB=A1=9C=EC=A7=81=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/operation.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/operation.go b/client/operation.go index c07772e..384be7f 100644 --- a/client/operation.go +++ b/client/operation.go @@ -447,10 +447,7 @@ func (hc *houstonClient) restartChildProcess(req *shared.RestartProcessRequest, proc.state = protos.ProcessState_Restart op.Refresh(context.Background(), hc.makeOperationQueryRequest()) - - if err := proc.cmd.Process.Signal(syscall.SIGTERM); err != nil { - proc.cmd.Process.Signal(os.Kill) - } + hc.exitChan <- proc.cmd break }