From 3206b8a2eac54b75a181859cd98130c5219c3126 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 2 Dec 2009 09:46:12 +0000 Subject: 27442 plus tweak: wait returns status for $! even if exited --- Src/exec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/exec.c') 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; -- cgit 1.4.1