The text 78e9e27af7fe, as Debian 13 (Trixie) shipped it.
wait for process to change state, BSD style
wait3(2) on Linux now