[Overview][Constants][Types][Procedures and functions] Reference for unit 'BaseUnix' (#rtl)

FpGetpid

Return current process ID

Declaration

Source position: bunxh.inc line 43

function FpGetpid: TPid;

Description

FpGetpid returns the Process ID of the currently running process.

Errors

None.

See also

FpGetPPid

  

Return parent process ID

Example

Program Example16;

{ Program to demonstrate the GetPid, GetPPid function. }

Uses BaseUnix;

begin
  Writeln ('Process Id = ',fpgetpid,' Parent process Id = ',fpgetppid);
end.