Skip to content

[Ubuntu] Can get parent from child, but not child from parent #2599

@alex-wenzel

Description

@alex-wenzel

Summary

  • OS: Ubuntu Ubuntu 24.04.2 LTS
  • Architecture: 64bit, x86
  • Psutil version: 7.0.0
  • Python version: 3.12.3
  • Type: core

Description

Given a specific known parent/child pair, I get expected results from child.parent() but parent.child() does not contain the specific child.

I'm specifically looking at these Python processes:

Image

As I think would be expected, the Python child process 6176 is actually a child of the sleeping bash process 1313, not its initiating Python process 6175. However, psutil is aware that 1313 is the parent of 6176, but not that 6176 is a child of 1313. I also checked and 6176 is not listed as a child of 6175 either.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions