GETPID(2) GETPID(2) NAME getpid, getppid - get process ids SYNOPSIS #include <u.h> #include <libc.h> int getpid(void) int getppid(void) DESCRIPTION Getpid returns the process id of the current process, a num- ber guaranteed to be unique among all running processes on the machine executing getpid. Getppid returns the process id of the parent of the current process. SOURCE /sys/src/libc/9sys SEE ALSO intro(2), exec(2), proc(3) DIAGNOSTICS Returns 0 and sets errstr if unsuccessful. Page 1 Plan 9 (printed 11/18/24)