🐛 macOS 端报错 数据库被锁定
Fix https://github.com/siyuan-note/siyuan/issues/6492
This commit is contained in:
parent
28711c7b2a
commit
8c7fce8cf2
1 changed files with 4 additions and 0 deletions
|
@ -50,8 +50,12 @@ func killRunningKernel() {
|
|||
return
|
||||
}
|
||||
|
||||
currentPid := os.Getpid()
|
||||
killed := false
|
||||
for _, process := range processes {
|
||||
if process.Pid() == currentPid {
|
||||
continue
|
||||
}
|
||||
procName := strings.ToLower(process.Executable())
|
||||
if strings.Contains(procName, "siyuan-kernel") {
|
||||
kill(fmt.Sprintf("%d", process.Pid()))
|
||||
|
|
Loading…
Add table
Reference in a new issue