Would it be possible to use `procdesc` to support #4? This would drop the need to register a signal handler. FreeBSD manpages: - [`pdwait4`](https://www.freebsd.org/cgi/man.cgi?query=pdwait4&sektion=2&apropos=0&manpath=FreeBSD+11.0-RELEASE+and+Ports) - [`procdesc`](https://www.freebsd.org/cgi/man.cgi?query=procdesc&sektion=4&apropos=0&manpath=FreeBSD+11.0-RELEASE+and+Ports)