improved the process tree retrieval

This commit is contained in:
Gustavo Iñiguez Goia 2025-02-11 01:05:41 +01:00
parent 740465a447
commit 5eebaf40fc

View file

@ -31,7 +31,7 @@ var pageSize = int64(os.Getpagesize())
func (p *Process) GetParent() {
hasParent := p.Parent != nil
if hasParent {
if hasParent && p.ID == 1 {
return
}