`Process` (POSIX version) should somehow cache `pgid` so it's still available after the process exits.