pxfgetpgrp
- Date:
10-20-2011
NAME
PXFGETPGRP - Gets the process group ID
SYNOPSIS
INTEGER ipgrp, ierror
CALL PXFGETPGRP(ipgrp, ierror)
IMPLEMENTATION
Cray Linux Environment (CLE)
STANDARDS
IEEE 1003.9-1992 standard interface for FORTRAN 77
DESCRIPTION
The PXFGETPGRP subroutine uses the getpgrp(2) system call to return the process group ID of the calling process.
All arguments must be of default kind unless documented otherwise. Default kind is KIND=4 for integer, real, complex, and logical arguments.
The following is a list of valid arguments for this routine:
- ipgrp
An output integer variable that contain the process group ID for the current process.
- ierror
An output integer variable that contains a status of zero if the process ID was successfully acquired.
EXAMPLES
In this example, PXFGETPGRP will return the process group ID for the calling process.
program pxftest
integer ipgrp, ierror
CALL PXFGETPGRP(ipgrp, ierror)
if (ierror .eq. 0) then
print *,'pgrp = ',ipgrp
else
print *,'error = ', ierror
endif
end
SEE ALSO
getpgrp(2)