From dde1fa75a555d1d7f0f7020b5c2a1b45a96741bb Mon Sep 17 00:00:00 2001 From: johlanse Date: Mon, 3 Oct 2022 11:20:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E7=A8=8B=E5=BA=8F=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E5=88=B0=E5=AD=90=E7=BA=BF=E7=A8=8B=E8=BF=90=E8=A1=8C=EF=BC=8C?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=E9=87=8D=E5=90=AF=20#99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- utils/util.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 0adf42d..8cc8cd5 100644 --- a/main.go +++ b/main.go @@ -394,7 +394,7 @@ func runBack() { _ = cmd.Wait() if cmd.ProcessState.Exited() { log.Infoln(cmd.ProcessState) - if cmd.ProcessState.ExitCode() != 1001 { + if cmd.ProcessState.ExitCode() != 201 { break } else { log.Infoln("检测到重启,开始重启程序") diff --git a/utils/util.go b/utils/util.go index a394f86..b9efb5b 100644 --- a/utils/util.go +++ b/utils/util.go @@ -28,7 +28,7 @@ func Restart() { // cmd.Start() // os.Exit(3) //}) - os.Exit(1001) + os.Exit(201) }