ProcessSpy-public icon indicating copy to clipboard operation
ProcessSpy-public copied to clipboard

Incorrect parent process relationship

Open litcc opened this issue 7 months ago • 2 comments

Describe the bug Regarding the parent process issue, I have some questions. What is displayed seems a bit different from the system's built-in manager.

To Reproduce Steps to reproduce the behavior: Not yet, because I suddenly noticed this process using my ssh-agent, which startled me, so I took a closer look.

Expected behavior The expectation should be consistent with the parent process ID in the system's built-in Task Manager.

Screenshots Image

Desktop (please complete the following information):

  • macOS version: 26.4.1 (25E253)
  • ProcessSpy version: 1.12.0
  • Mac system config (processor, RAM): M4,64GB

Additional context No

litcc avatar Apr 28 '26 14:04 litcc

Hi @litcc,

Thanks for reporting this!

To give you some context on what might be happening: ProcessSpy uses two data sources to determine a process's parent—the strict UNIX Parent PID and the macOS "Responsible" PID. Activity Monitor actually behaves the exact same way. In its hierarchy view, it uses both sources to assign children to their parents (grouping XPC services and helpers under the app that requested them), but its detail view only shows the raw UNIX Parent PID (which is usually launchd).

Because of this, it is entirely possible that AlDente triggered ssh-agent in the background (for example, during a network call or auto-update check), causing macOS to permanently tag AlDente as the "Responsible" process for that session.

You can verify if this is exactly what the OS is reporting by checking the Activity Monitor hierarchy, or by running the following command in your Terminal:

sudo launchctl procinfo 37322 | grep responsible

If it returns AlDente's PID, then ProcessSpy is accurately reflecting the system's underlying data. Please let me know what it outputs so we can confirm if this is expected OS behavior or a bug!

Best regards, Robert

robert-v avatar Apr 28 '26 17:04 robert-v

Oh😮, I'm very sorry, you're right, it is consistent with the current Activity Monitor hierarchy of the system. Thank you for clarifying that for me;
I'm just very curious why a power management software would become the "responsible" process for ssh-agent;

litcc avatar Apr 29 '26 01:04 litcc