Optimize Linux process finder

This commit is contained in:
世界
2026-03-23 15:54:29 +08:00
parent b8e5a71450
commit 3f05a37f65
9 changed files with 462 additions and 144 deletions

View File

@@ -43,3 +43,7 @@ func (s *platformSearcher) FindProcessInfo(ctx context.Context, network string,
return s.platform.FindConnectionOwner(request)
}
func (s *platformSearcher) Close() error {
return nil
}

View File

@@ -196,6 +196,13 @@ func (r *Router) Close() error {
})
monitor.Finish()
}
if r.processSearcher != nil {
monitor.Start("close process searcher")
err = E.Append(err, r.processSearcher.Close(), func(err error) error {
return E.Cause(err, "close process searcher")
})
monitor.Finish()
}
return err
}