GETPID(2) COMMAND REFERENCE GETPID(2) NAME getpid, getppid - get process identification SYNOPSIS pid = getpid() long pid; ppid = getppid() long ppid; DESCRIPTION Getpid returns the process ID of the current process in pid. Most often it is used with the host identifier gethostid(2) to generate uniquely-named temporary files. Getppid returns the process ID of the parent of the current process in ppid. RETURN VALUE Getpid returns the current process ID; getppid returns the current process' parent's process ID. SEE ALSO gethostid(2). Printed 4/6/89 1
%%index%% na:288,96; sy:384,594; de:978,631; rv:1609,366; se:1975,145; %%index%%000000000094