If you know the pid of a process is there a way to destroy the hole process tree created from that process and free all the memory allocated by those processes ? I need to find a way to do that in a C program without having to go to each process of the tree. If you know the pid of a process is there a way