When issuing an exit(Pid, kill) to a another process, is there any guarantee that the process, and all its linked child processes, are dead before continuing? If not, can anyone tell me a good way to wait on a process tree to die before continuing an action?