Get all child process IDs of the given process. Args: pid: Process ID of the parent process recursive: If True, return all descendants (children, grandchildren, etc.) Returns: List of child PIDs
(pid, recursive=True)
| 26 | |
| 27 | |
| 28 | def get_child_pids(pid, recursive=True): |
| 29 | """ |
| 30 | Get all child process IDs of the given process. |
| 31 | |
| 32 | Args: |
| 33 | pid: Process ID of the parent process |
| 34 | recursive: If True, return all descendants (children, grandchildren, etc.) |
| 35 | |
| 36 | Returns: |
| 37 | List of child PIDs |
| 38 | """ |
| 39 | return _remote_debugging.get_child_pids(pid, recursive=recursive) |
| 40 | |
| 41 | |
| 42 | def is_python_process(pid): |
no outgoing calls
searching dependent graphs…