 Conversely, a child process whose parent process terminates before it does becomes an "orphan process".Such situations are typically handled with a special "root" (or "init") process, which is assigned as the new parent of a process when its parent process exits.This special process detects when an orphan process terminates and then retrieves its exit status, allowing the system to deallocate the terminated child process.