interesting i feel like usually people use kill pid to see if a process is still alive actually  there is a scenario involving pid namespaces where kill pid would work but getpgid pid  would fail  with einval iirc unlikely to show up here  but might as well be pathological and stick with kill  