Function TCGetPGrp (Fd:longint;var Id:longint) : boolean;
TCGetPGrp returns the process group ID of a foreground process group in Id
The function returns True if the call was succesfull, False otherwise
Errors are reported in LinuxError
termios (2)