%PGETPID

%PGETPID


%PCLOSE Index Level %POPEN
Syntax variable = %PGETPID( line )
Category BASIC
Type C Function
Description returns the Unix Process Id (PID) associated to the Pick process "line".
If "line" is equal to -1, the PID of the current process is returned. If "line" is equal to -2, the PID of the flush process is returned. If the Pick process is not connected, 0 (zero) is returned.
Options
See Also c function %KILL CFUNCTION pid pid
Example * Get our own pid
pid=%pgetpid( system( 22 ) )
Warnings This function is a Pick extension. It is not part of libc.a.
Compatibility D3/Unix
%PCLOSE Index Level %POPEN