summary refs log tree commit diff
path: root/Src/init.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/init.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/init.c')
-rw-r--r--Src/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/init.c b/Src/init.c
index be1055a53..cf5a6074d 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -913,6 +913,7 @@ setupvals(void)
     bufstack = znewlinklist();
     hsubl = hsubr = NULL;
     lastpid = 0;
+    lastpid_status = -1L;
     bshin = SHIN ? fdopen(SHIN, "r") : stdin;
     if (isset(SHINSTDIN) && !SHIN && unset(INTERACTIVE)) {
 #ifdef _IONBF