8.134 GETPID — Process ID function

Synopsis:

RESULT = GETPID()

Description:

Returns the numerical process identifier of the current process.

Class:

Function

Return value:

The return value of GETPID is an INTEGER of the default kind.

Example:
program info
  print *, "The current process ID is ", getpid()
  print *, "Your numerical user ID is ", getuid()
  print *, "Your numerical group ID is ", getgid()
end program info
Standard:

GNU extension

See also:

GETGID — Group ID function,
GETUID — User ID function