Check Exit status of child process