about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-12-02 09:46:12 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-12-02 09:46:12 +0000
commit3206b8a2eac54b75a181859cd98130c5219c3126 (patch)
tree64de96a496ae31708bf9ba59065d83a62da600fb /Src/exec.c
parentbc51b97d53d24e5d793d3219940de7daf60d2916 (diff)
downloadzsh-3206b8a2eac54b75a181859cd98130c5219c3126.tar.gz
zsh-3206b8a2eac54b75a181859cd98130c5219c3126.tar.xz
zsh-3206b8a2eac54b75a181859cd98130c5219c3126.zip
27442 plus tweak: wait returns status for $! even if exited
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 2263bd640..172d302da 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -2727,6 +2727,8 @@ execcmd(Estate state, int input, int output, int how, int last1)
 #endif
 	    if (how & Z_ASYNC) {
 		lastpid = (zlong) pid;
+		/* indicate it's possible to set status for lastpid */
+		lastpid_status = -2L;
 	    } else if (!jobtab[thisjob].stty_in_env && varspc) {
 		/* search for STTY=... */
 		Wordcode p = varspc;