[Overview][Constants][Types][Procedures and functions][Index] |
Return current process ID
Source position: bunxh.inc line 46
function FpGetpid: TPid; |
FpGetpid returns the process ID of the currently running process.
Note: There exist a portable alterative to fpGetpid: system.GetProcessID. Please use fpGetpid only if you are writing Unix specific code. System.GetProcessID will work on all operating systems.
None.
|
Return parent process ID |
Program Example16; { Program to demonstrate the GetPid, GetPPid function. } Uses BaseUnix; begin Writeln ('Process Id = ',fpgetpid,' Parent process Id = ',fpgetppid); end.