getpid

Function getpid 

Source
pub unsafe extern "system" fn getpid() -> pid_t
Expand description

getpid() returns the process ID (PID) of the calling process. (This is often used by routines that generate unique temporary filenames.)

§RETURN VALUE

getpid() returns the process ID (PID) of the calling process

§ERRORS

These functions are always successful.

Read the docs here