Find the answer to your Linux question:
Results 1 to 2 of 2
Is there a way to determine precisely what process created another process? For example: Process A forks creating process B and then process B creates a process of its own, ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    2

    Beyond PS

    Is there a way to determine precisely what process created another process? For example: Process A forks creating process B and then process B creates a process of its own, process C. If I type in ps -j all three processes will have the same Group ID (presumably the PID from process A). Is there any way to identify that process C was spawned by process B as opposed to A?

  2. #2
    Just Joined!
    Join Date
    Mar 2009
    Posts
    2
    Sorry guys, I'm an idiot. ps -f gives the PPID.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...