When the child process terminates, it returns an exit status to the operating system, which is then returned to the waiting parent process.
Upon termination of a child process, it communicates its exit status to the operating system, which then relays this information to the awaiting parent process.