seems to be an off-by-one error, since njobs is decremented before we use it. I hope this does not break the vfork case!