The text eeda6afb4fc2, as FreeBSD 6.4-RELEASE shipped it.
wait for process termination
wait3(2) on FreeBSD now