Reference

pidwait(1) on Linux

The text 37e958a0031f, as Debian 11 (Bullseye) shipped it.

look up, signal, or wait for processes based on name and other attributes

Flags it lists

pidwait(1) on Linux now