[−][src]Function lpfs::_self::self_pid
pub fn self_pid() -> Result<u32, ProcErr>
Return the process ID (pid) of calling process.
This should have the same output of getpid()
,
but it is a safe method.
Note: std::process::id() have same behavior.