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

GetPPid

Return parent process ID

Declaration

Source position: oldlinux.pp line 1369

function GetPPid: LongInt;

Description

Get the Process ID of the parent process.

Errors

None.

See also

GetPid

  

Return current process ID

Example

Program Example16;

{ Program to demonstrate the GetPid, GetPPid function. }

Uses oldlinux;

begin
  Writeln ('Process Id = ',getpid,' Parent process Id = ',getppid);
end.
The latest version of this document can be found at lazarus-ccr.sourceforge.net.