WBLOCK
dowait(WBLOCK, jp, NULL);
pid = waitproc(flags & WBLOCK, job, &status);
if ((i = dowait(WBLOCK|WNOFREE, NULL, &job)) == -1)