These are the possible values for idtype in waitid(). They affect how id is interpreted:
os/P_PGID
P_PGID