The text ca3549199d3e, as Debian 10 (Buster) shipped it.
wait for process to change state, BSD style
wait4(2) on Linux now