[WIP] Error and state handleing improvments, better logs

This commit is contained in:
Vladimir Stoilov
2024-09-19 12:38:23 +03:00
parent 072d7e6971
commit b3ff6f14f1
24 changed files with 146 additions and 1981 deletions

View File

@@ -2,11 +2,9 @@ package process
import (
"errors"
"os"
"sync/atomic"
"github.com/safing/portmaster/service/mgr"
"github.com/safing/portmaster/service/updates"
)
type ProcessModule struct {
@@ -19,10 +17,6 @@ func (pm *ProcessModule) Manager() *mgr.Manager {
}
func (pm *ProcessModule) Start() error {
updatesPath = updates.RootPath()
if updatesPath != "" {
updatesPath += string(os.PathSeparator)
}
return nil
}
@@ -30,8 +24,6 @@ func (pm *ProcessModule) Stop() error {
return nil
}
var updatesPath string
func prep() error {
if err := registerConfiguration(); err != nil {
return err