Bugfix for the new PID cache in wait(2). The simple case of process successfull terminated was missed causing make and sh to error and suicide respectively. -Steve Reference: /n/sources/patch/applied/ape-wait-bug Date: Thu Jul 1 00:50:50 CES 2004 --- /sys/src/ape/lib/ap/plan9/wait.c Thu Jul 1 00:50:50 2004 +++ /sys/src/ape/lib/ap/plan9/wait.c Thu Jul 1 00:50:50 2004 @@ -89,6 +89,7 @@ if (wpid <= 0) { waitmsg = w; wpid = w->pid; + *status = 0; return wpid; } if (w->pid == wpid) {