Wait for a (non-child) process' exit using Linux's PROC_EVENTS and POSIX capabilities.