Fix problem with SIGILL thrown by a different child was being caught

* For some reason other children were throwing SIGILL signals which
  were being caught by Process.wait2. This fixes the problem by only
  waiting for the forked child to finish.