sh: Show message when child called abort()

This commit is contained in:
apio 2022-10-30 18:36:52 +01:00
parent 00f90246c8
commit e58aa361c8

View File

@ -197,6 +197,7 @@ void command_execute(command* cmd)
}
int exit_status = WEXITSTATUS(status);
if (exit_status == -2 || exit_status == -3) printf("(PID %ld) Segmentation fault\n", result);
if (exit_status == -1) printf("(PID %ld) Aborted\n", result);
command_clear(cmd);
show_prompt();
}