current_pid

Function current_pid 

Source
pub fn current_pid() -> Result<u32, String>
Expand description

Get current process ID

ยงExamples

use ruchy::stdlib::process;

let pid = process::current_pid().unwrap();
assert!(pid > 0);