From da5ef0725a673d2bd5c4f07f72f7d252fc3b656b Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 29 May 2025 17:15:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E8=AE=BE=E7=BD=AE=E4=BB=A5=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E8=BF=9B=E7=A8=8B=E9=98=BB=E5=A1=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/framework/cmd/cmd_session.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/framework/cmd/cmd_session.go b/src/framework/cmd/cmd_session.go index 808ea1d4..25fa65d9 100644 --- a/src/framework/cmd/cmd_session.go +++ b/src/framework/cmd/cmd_session.go @@ -15,8 +15,7 @@ func NewClientSession(cols, rows int) (*LocalClientSession, error) { c := exec.Command("bash") // 为防止当前进程阻塞,设置为后台执行 c.SysProcAttr = &syscall.SysProcAttr{ - HideWindow: true, // 隐藏窗口 - NoInheritHandles: true, // 不继承句柄 + Setpgid: true, // 设置新进程组,确保安装进程与当前进程不在同一进程组 } // Start the command with a pty. ptmx, err := pty.StartWithSize(c, &pty.Winsize{