add _exit() to child process, with the value being the status of the corresponding command