Lines Matching defs:fork
221 /// Represents the successful result of calling `fork`
223 /// When `fork` is called, the process continues execution in the parent process
234 /// Return `true` if this is the child process of the `fork()`
240 /// Returns `true` if this is the parent process of the `fork()`
248 /// fork(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fork.html)).
250 /// After successfully calling the fork system call, a second process will
255 /// use nix::{sys::wait::waitpid,unistd::{fork, ForkResult, write}};
257 /// match unsafe{fork()} {
273 /// immediately after the fork call but with different match arms.
292 pub unsafe fn fork() -> Result<ForkResult> {
294 let res = libc::fork();