update todo
Fix the reaping of the children

The waidpid array had a race condition, now we allocate the integer
before it is put on the list