in reply to Fork Wait and probably grandchildren

Put wait inside the loop.

the lowliest monk