next up previous contents index
Next: GetPPid Up: Functions and procedures Previous: GetHostName

GetPid

   

Declaration:

Function GetPid : Longint;

Description:

Get the Process ID of the currently running process.

Errors:

None.

See also:

GetPPid, getpid (2)

Example
Program Example16;

{ Program to demonstrate the GetPid, GetPPid function. }

Uses linux;

begin
  Writeln ('Process Id = ',getpid,' Parent process Id = ',getppid);
end.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998