fix: 修复浏览器进程清理问题并更新 darwin-arm64 二进制 (v1.7.46)
- 修复 openBrowser 函数僵尸进程问题 - 新增 darwin-arm64 预编译二进制 - 正确清理浏览器子进程防止资源泄露 Fixes: #issue-windows-heredoc-error
This commit is contained in:
1 parent
aae2ad793c
commit
c10eacceeb
2 files changed
+13
-2
No files matched your search
@@ -128,7 +128,18 @@ func openBrowser(url string) {
|
||||
default:
|
||||
return
|
||||
}
|
||||
_ = cmd.Start()
|
||||
|
||||
// FIX: Properly clean up browser process to prevent zombie processes
|
||||
// Start the command and wait for it to complete in a goroutine
|
||||
if err := cmd.Start(); err != nil {
|
||||
// Silently fail if browser can't be opened
|
||||
return
|
||||
}
|
||||
|
||||
// Clean up process in background to prevent zombie processes
|
||||
go func() {
|
||||
_ = cmd.Wait()
|
||||
}()
|
||||
}
|
||||
|
||||
// StartSession starts tracking a new session
|
||||
|
||||
Reference in new issue
Block a user