Fix handling of connections without process

This commit is contained in:
Daniel
2023-07-28 16:50:35 +02:00
parent 5802cb2bf7
commit a33526a976
3 changed files with 18 additions and 7 deletions

View File

@@ -111,7 +111,8 @@ func CleanProcessStorage(activePIDs map[int]struct{}) {
// The PID of a process does not change.
// Check if this is a special process.
if p.Pid == UnidentifiedProcessID || p.Pid == SystemProcessID {
switch p.Pid {
case UnidentifiedProcessID, UnsolicitedProcessID, SystemProcessID:
p.profile.MarkStillActive()
continue
}