help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

GetPid

Return current process ID

Declaration

Source position: oldlinux.pp line 1368

function GetPid: LongInt;

Description

Get the Process ID of the currently running process.

Errors

None.

See also

GetPPid

  

Return parent process ID

Example

Program Example16;

{ Program to demonstrate the GetPid, GetPPid function. }

Uses oldlinux;

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

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505