#include <unistd.h> int getpgrp(void);
Gets the process group, which is currently the same as the pid.
The process group.