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