mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
[client] Log duplicate client ui pid (#3915)
This commit is contained in:
@@ -89,13 +89,13 @@ func main() {
|
||||
}
|
||||
|
||||
// Check for another running process.
|
||||
running, err := process.IsAnotherProcessRunning()
|
||||
pid, running, err := process.IsAnotherProcessRunning()
|
||||
if err != nil {
|
||||
log.Errorf("error while checking process: %v", err)
|
||||
return
|
||||
}
|
||||
if running {
|
||||
log.Warn("another process is running")
|
||||
log.Warnf("another process is running with pid %d, exiting", pid)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user