1: Handle child process termination (SIGCHILD)