diff options
author | dillon <dillon@FreeBSD.org> | 2000-07-25 18:50:22 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2000-07-25 18:50:22 +0000 |
commit | 93d09cda1f5956c9d644ff339af9fe380ace9b81 (patch) | |
tree | 802857f13eae690ca19b2fdde51ed1022b7773e2 /lib | |
parent | b4eb939d51411257860d98e87ff2c6d54e7da532 (diff) | |
download | FreeBSD-src-93d09cda1f5956c9d644ff339af9fe380ace9b81.zip FreeBSD-src-93d09cda1f5956c9d644ff339af9fe380ace9b81.tar.gz |
MFC 1.11.2.3 from -stable to -current
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/rfork.2 | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/lib/libc/sys/rfork.2 b/lib/libc/sys/rfork.2 index 520b813..60f906e 100644 --- a/lib/libc/sys/rfork.2 +++ b/lib/libc/sys/rfork.2 @@ -54,13 +54,16 @@ If set, the new process starts with a clean file descriptor table. Is mutually exclusive with .Dv RFFDG . .It RFMEM -If set, the kernel will force sharing of the entire address space. +If set, the kernel will force sharing of the entire address space, +typically by sharing the hardawre page table directly. The child -will then inherit all the shared segments the parent process owns. -Other segment -types will be unaffected. Subsequent forks by the parent will then -propagate the shared data and bss between children. The stack segment -is always split. May be set only with +will thus inherit and share all the segments the parent process owns, +whether they are normally shareable or not. The stack segment is +not split (both the parent and child return on the same stack) and thus +.Fn rfork +with the RFMEM flag may not generally be called directly from a high level +language. For example, you may not call it directly from C. +May be set only with .Dv RFPROC . .It RFSIGSHARE If set, the kernel will force sharing the sigacts structure between the @@ -143,6 +146,18 @@ There is insufficient swap space for the new process. .Xr intro 2 , .Xr minherit 2 , .Xr vfork 2 +.Sh BUGS +FreeBSD does not yet implement a native +.Fn clone +library call, and the current pthreads implementation does not use +.Fn +rfork +with RFMEM. A native port of the linux threads library, +.Pa /usr/ports/devel/linuxthreads , +contains a working +.Fn +clone +call that utilizes RFMEM. .Sh HISTORY The .Fn rfork |