# PXFTCGETPGRP (L*X, M*X)

POSIX Subroutine: Gets the foreground process group ID associated with the terminal.

## Module

USE IFPOSIX

CALL PXFTCGETPGRP (ifildes,ipgid,ierror)

ifildes | (Input) INTEGER(4). The file descriptor associated with the terminal.
ipgid | (Output) INTEGER(4). The returned process group ID.
ierror | (Output) INTEGER(4). The error status.

If successful, ierror is set to zero; otherwise, an error code.

Parent topic: POSIX* Library Routines

## See Also

PXFTCSETPGRP