How do you find the process of a child?

How do you find the process of a child?
Answer
You can get the pids of all child processes of a given parent process
<pid> by reading the /proc/<pid>/task/<tid>/children entry. This file contain the pids of first level child processes.
 

Tìm kiếm

Back
Top