diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/sh.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Userland/sh.cpp b/Userland/sh.cpp index f218ae7290..264a748cf7 100644 --- a/Userland/sh.cpp +++ b/Userland/sh.cpp @@ -148,7 +148,11 @@ static int runcmd(char* cmd) if (WIFEXITED(wstatus)) { //printf("Exited normally with status %d\n", WEXITSTATUS(wstatus)); } else { - printf("Exited abnormally\n"); + if (WIFSIGNALED(wstatus)) { + printf("Terminated by signal %d\n", WTERMSIG(wstatus)); + } else { + printf("Exited abnormally\n"); + } } return retval; } |