descendantsOf static method
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]);