@@ -1,7 +1,6 @@
package main
import (
"fmt"
"log"
"os"
"os/exec"
@@ -43,7 +42,7 @@ func Daemon() {
}
// 输出提示信息(调试用,正式版可删除)
fmt.Println("新实例已启动,当前进程将退出")
log.Println("新实例已启动,当前进程将退出")
// 退出父进程,让子进程继续运行
// 注意:此时子进程的父进程变为 init 进程(PID 1)
The note is not visible to the blocked user.