The text 0f3b2f11cde9, as Debian 5.0 (Lenny) shipped it.
wait for process to change state, BSD style
wait3(2) on Linux now