Commit 21afa2db authored by Lindsay Knupp's avatar Lindsay Knupp
Browse files

Lab 9.2 completed

parent 17d7ba4f
......@@ -70,7 +70,13 @@ int main (int argc, char *argv[]){
else {
wait(&status);
fflush(stdout);
int es = WEXITSTATUS(status);
if (es == 0){
printf("[ishell: program terminated successfully]\n");
}
else {
printf("[ishell: program terminated abnormally][%d]\n",es);
}
for (int i=0;i<token_count;i++){
free(tokens[i]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment