pub unsafe fn fork() -> Result<ForkResult, CoreError>Expand description
Fork the current process.
§Safety
After fork, only async-signal-safe operations are safe in the child
before exec. Rust’s allocator is not async-signal-safe; use this only
in the narrow pattern of fork → exec or fork → immediate _exit.