descendantsOf static method

Future<List<int>> descendantsOf(
  1. int pid
)

The pids of the running descendants of pid (its children, their children...), the closest first, empty when none.

Read them before killing pid: an orphan gets another parent.

Implementation

static Future<List<int>> descendantsOf(int pid) async =>
    processTableDescendantIds(await readProcessTable(), [pid]);