sh: Show message when child called abort()
This commit is contained in:
parent
00f90246c8
commit
e58aa361c8
@ -197,6 +197,7 @@ void command_execute(command* cmd)
|
|||||||
}
|
}
|
||||||
int exit_status = WEXITSTATUS(status);
|
int exit_status = WEXITSTATUS(status);
|
||||||
if (exit_status == -2 || exit_status == -3) printf("(PID %ld) Segmentation fault\n", result);
|
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);
|
command_clear(cmd);
|
||||||
show_prompt();
|
show_prompt();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user