https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2025-2/pxftcgetpgrp.html
PXFTCGETPGRP
POSIX Subroutine: Gets the foreground process group ID associated with the terminal. This routine is only available for Linux.