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