util: generalize code that checks whether PIDs are alive or unwaited for
prepare NEWS