mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-10 01:51:07 +09:00
GO-866 Log process kill error
This commit is contained in:
parent
f34b950737
commit
f1b14c22ff
1 changed files with 6 additions and 2 deletions
|
@ -84,7 +84,11 @@ func cleanupAfterOldProcess(exePath string, lockfile string) {
|
|||
|
||||
if isNotCurrentRun && !isMyProcess(exePath, proc) {
|
||||
log.Warnf("Killing the old process.")
|
||||
_ = proc.Kill()
|
||||
time.Sleep(lockReleaseDelay)
|
||||
err = proc.Kill()
|
||||
if err != nil {
|
||||
log.Errorf("Failed to kill the old process: %v", err)
|
||||
} else {
|
||||
time.Sleep(lockReleaseDelay)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue