mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 桌面端系统睡眠唤醒后内核可能会自动退出 Fix https://github.com/siyuan-note/siyuan/issues/7323
This commit is contained in:
parent
32e83f1137
commit
7de1aa008a
1 changed files with 4 additions and 0 deletions
|
|
@ -121,6 +121,10 @@ func getAttachedUIProcCount() (ret int) {
|
||||||
func getUIProcCount() (ret int) {
|
func getUIProcCount() (ret int) {
|
||||||
procs, _ := goPS.Processes()
|
procs, _ := goPS.Processes()
|
||||||
for _, proc := range procs {
|
for _, proc := range procs {
|
||||||
|
if proc.Pid() == os.Getpid() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
procName := strings.ToLower(proc.Executable())
|
procName := strings.ToLower(proc.Executable())
|
||||||
uiProcOk := false
|
uiProcOk := false
|
||||||
for _, name := range uiProcNames {
|
for _, name := range uiProcNames {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue