diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-07-31 22:03:41 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-07-31 22:03:41 +0000 |
commit | fc7ad5cc1caca79c160530d69521319a2136f8ef (patch) | |
tree | f84fb8bbdb4681e9d55a6afa11b53a536e8c451c /Src | |
parent | 5659426c2a4d6465f915a86257d01ea6b8c7a984 (diff) | |
download | zsh-fc7ad5cc1caca79c160530d69521319a2136f8ef.tar.gz zsh-fc7ad5cc1caca79c160530d69521319a2136f8ef.tar.xz zsh-fc7ad5cc1caca79c160530d69521319a2136f8ef.zip |
users/15219: PRINTEXITVALUE if terminated by signal
Diffstat (limited to 'Src')
-rw-r--r-- | Src/jobs.c | 4 |
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) |