Next: PSX_GETPPID - Gets the process ID of the parent process
Up: Routine Descriptions
Previous: PSX_GETGID - Gets the real group ID
PSX_GETPID
- Gets the process ID
- Description:
- The routine obtains the process identification number of the current
process and returns the value in PID.
- Invocation:
- CALL PSX_GETPID( PID, STATUS )
- Arguments:
-
-
PID = INTEGER (Returned)
-
The value of the process ID.
-
STATUS = INTEGER (Given)
-
The global status.
- Notes:
- When the same program is run several times on a Unix system,
a different PID is returned every time.
-
References
- POSIX standard (1988), section 4.1.1
-
Copyright
- Copyright (C) 1991 Science & Engineering Research Council
Next: PSX_GETPPID - Gets the process ID of the parent process
Up: Routine Descriptions
Previous: PSX_GETGID - Gets the real group ID
PSX POSIX interface routines
Starlink User Note 121
P M Allan
A J Chipperfield
10 April 2003
E-mail:ussc@star.rl.ac.uk
Copyright © 2000 Council for the Central Laboratory of the Research Councils