History log of /src/lib/libsys/rfork.2 (Results 1 – 25 of 42)
Revision Date Author Comments
# f7b56887 20-Jan-2026 Konstantin Belousov <kib@FreeBSD.org>

Document pdrfork(2) and pdwait(2)

Reviewed by: asomers, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D54592


# 8269e767 14-Nov-2023 Brooks Davis <brooks@FreeBSD.org>

libsys: relocate implementations and manpages

Remove core system call implementations and documentation to lib/libsys
and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>.
Update paths

libsys: relocate implementations and manpages

Remove core system call implementations and documentation to lib/libsys
and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>.
Update paths to allow libc to find them in their new home.

Reviewed by: kib, emaste, imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/908

show more ...


# fa9896e0 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line nroff pattern

Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/


# c34a5f16 25-Sep-2019 Kyle Evans <kevans@FreeBSD.org>

posix_spawn(3): handle potential signal issues with vfork

Described in [1], signal handlers running in a vfork child have
opportunities to corrupt the parent's state. Address this by adding a new
rf

posix_spawn(3): handle potential signal issues with vfork

Described in [1], signal handlers running in a vfork child have
opportunities to corrupt the parent's state. Address this by adding a new
rfork(2) flag, RFSPAWN, that has vfork(2) semantics but also resets signal
handlers in the child during creation.

x86 uses rfork_thread(3) instead of a direct rfork(2) because rfork with
RFMEM/RFSPAWN cannot work when the return address is stored on the stack --
further information about this problem is described under RFMEM in the
rfork(2) man page.

Addressing this has been identified as a prerequisite to using posix_spawn
in subprocess on FreeBSD [2].

[1] https://ewontfix.com/7/
[2] https://bugs.python.org/issue35823

Reviewed by: jilles, kib
Differential Revision: https://reviews.freebsd.org/D19058

show more ...


# 079c5b9e 25-Sep-2019 Kyle Evans <kevans@FreeBSD.org>

rfork(2): add RFSPAWN flag

When RFSPAWN is passed, rfork exhibits vfork(2) semantics but also resets
signal handlers in the child during creation to avoid a point of corruption
of parent state from

rfork(2): add RFSPAWN flag

When RFSPAWN is passed, rfork exhibits vfork(2) semantics but also resets
signal handlers in the child during creation to avoid a point of corruption
of parent state from the child.

This flag will be used by posix_spawn(3) to handle potential signal issues.

Reviewed by: jilles, kib
Differential Revision: https://reviews.freebsd.org/D19058

show more ...


# 134e789b 12-Jul-2011 Konstantin Belousov <kib@FreeBSD.org>

Document RFTSIGZMB. Fix spelling of SIGCHLD. Note that signals are
delivered, not returned.

MFC after: 1 week


# dd888c67 15-Mar-2011 Jilles Tjoelker <jilles@FreeBSD.org>

rfork(2): Discourage rfork_thread-like approaches.

Calling rfork_thread(3) does not interoperate with pthreads and global state
is not properly protected.

Remove the BUGS section suggesting LinuxTh

rfork(2): Discourage rfork_thread-like approaches.

Calling rfork_thread(3) does not interoperate with pthreads and global state
is not properly protected.

Remove the BUGS section suggesting LinuxThreads entirely. With the current
pthread library libthr, all threads are kernel-level entities so there seems
little reason to use LinuxThreads.

show more ...


# 79df5e05 14-May-2007 Pav Lucistnik <pav@FreeBSD.org>

Document RFTHREAD

PR: docs/78915
Submitted by: Marc Olzheim <marcolz@stack.nl>
MFC after: 1 week


# 0227791b 13-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Expand *n't contractions.


# 24a0682c 20-Jan-2005 Ruslan Ermilov <ru@FreeBSD.org>

Sort sections.


# 1a0a9345 02-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Mechanically kill hard sentence breaks.


# d1c2c89d 27-Apr-2003 Robert Drehmel <robert@FreeBSD.org>

Correct the return value of vfork(2) and rfork(2) in their
manual page function prototypes.


# 522ccf3f 23-Feb-2003 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: markup laundry.


# f6f38550 31-Jan-2003 Tim J. Robbins <tjr@FreeBSD.org>

Zap another reference to !RFPROC being unsupported that I missed before.


# 722ca3ef 31-Jan-2003 Tim J. Robbins <tjr@FreeBSD.org>

Don't use -compact in list of available flags. Fix tag width.


# 34f2304f 31-Jan-2003 Tim J. Robbins <tjr@FreeBSD.org>

!RFPROC has been supported for a while now.


# 2efeeba5 19-Dec-2002 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: "The .Fa argument.".


# 2faeeff4 18-Dec-2002 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: Tidy up the syscall language.

Stop calling system calls "function calls".

Use "The .Fn system call" a-la "The .Nm utility".

When referring to a non-BSD implementation in
the HISTOR

mdoc(7) police: Tidy up the syscall language.

Stop calling system calls "function calls".

Use "The .Fn system call" a-la "The .Nm utility".

When referring to a non-BSD implementation in
the HISTORY section, call syscall a function,
to be safe.

show more ...


# e3682e19 30-Jul-2002 Mike Silbersack <silby@FreeBSD.org>

Update docs to reflect change in count of procs reserved for root
from 1 to 10.

PR: kern/40515
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after: 1 day


# 6507c9a1 19-Dec-2001 John Baldwin <jhb@FreeBSD.org>

Document that rfork() will return EINVAL if flags not listed in the
manpage are passed in.


# 32eef9ae 01-Oct-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: Use the new .In macro for #include statements.


# 94ba280c 10-Aug-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: join split punctuation to macro calls.


# 7ebcc426 15-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

Remove whitespace at EOL.


# 66e845d8 16-Mar-2001 Matthew Dillon <dillon@FreeBSD.org>

Fix type-o

Submitted by: okazaki


# a2fd3702 11-Dec-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use canonical form of .Dd macro.


12