Merge pull request #346 from frewsxcv/pg

Add `getpgid`.