diff --git a/Shell/main.cpp b/Shell/main.cpp index 1f1bb44656..26ba668f4c 100644 --- a/Shell/main.cpp +++ b/Shell/main.cpp @@ -817,7 +817,7 @@ static int run_command(const String& cmd) if (i == 0) return_value = WEXITSTATUS(wstatus); } else if (WIFSTOPPED(wstatus)) { - printf("Shell: %s(%d) stopped.\n", child.name.characters(), child.pid); + fprintf(stderr, "Shell: %s(%d) %s\n", child.name.characters(), child.pid, strsignal(WSTOPSIG(wstatus))); } else { if (WIFSIGNALED(wstatus)) { printf("Shell: %s(%d) exited due to signal '%s'\n", child.name.characters(), child.pid, strsignal(WTERMSIG(wstatus)));