Function nc::fork

source ·
pub unsafe fn fork() -> Result<pid_t, Errno>
Expand description

Create a child process.

§Example

let pid = unsafe { nc::fork() };
assert!(pid.is_ok());
let pid = pid.unwrap();
assert!(pid >= 0);