summaryrefslogtreecommitdiff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/jobs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/jobs.c b/Src/jobs.c
index 4560bf4e2..6c080de0c 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -873,6 +873,10 @@ printjob(Job jn, int lng, int synch)
sflag = 1;
if (job == thisjob && sig == SIGINT)
doputnl = 1;
+ if (isset(PRINTEXITVALUE) && isset(SHINSTDIN)) {
+ sflag = 1;
+ skip_print = 0;
+ }
} else if (WIFSTOPPED(pn->status)) {
sig = WSTOPSIG(pn->status);
if ((int)strlen(sigmsg(sig)) > len)