File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -3032,9 +3032,17 @@ libc_bitflags! {
3032
3032
feature ! {
3033
3033
#![ feature = "process" ]
3034
3034
#[ cfg( target_os = "freebsd" ) ]
3035
- /// rfork can be used to have a tigher control about which resources child
3036
- /// and parent process will be sharing, file descriptors, address spaces
3037
- /// and child exit's behavior.
3035
+ /// Like [`fork`], `rfork` can be used to have a tigher control about which
3036
+ /// resources child and parent process will be sharing, file descriptors,
3037
+ /// address spaces and child exit's behavior.
3038
+ ///
3039
+ /// # Safety
3040
+ ///
3041
+ /// The same restrictions apply as for [`fork`].
3042
+ ///
3043
+ /// # See Also
3044
+ ///
3045
+ /// * [rfork(2)](https://man.freebsd.org/cgi/man.cgi?query=rfork)
3038
3046
pub unsafe fn rfork( flags: RforkFlags ) -> Result <ForkResult > {
3039
3047
use ForkResult :: * ;
3040
3048
let res = unsafe { libc:: rfork( flags. bits( ) ) } ;
You can’t perform that action at this time.
0 commit comments