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