aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/rfork.2
Commit message (Collapse)AuthorAgeFilesLines
* posix_spawn(3): handle potential signal issues with vforkKyle Evans2019-09-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=352712
* rfork(2): add RFSPAWN flagKyle Evans2019-09-251-2/+12
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=352711
* Document RFTSIGZMB. Fix spelling of SIGCHLD. Note that signals areKonstantin Belousov2011-07-121-2/+14
| | | | | | | | | delivered, not returned. MFC after: 1 week Notes: svn path=/head/; revision=223967
* rfork(2): Discourage rfork_thread-like approaches.Jilles Tjoelker2011-03-151-17/+3
| | | | | | | | | | | | 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. Notes: svn path=/head/; revision=219682
* Document RFTHREADPav Lucistnik2007-05-141-1/+9
| | | | | | | | | PR: docs/78915 Submitted by: Marc Olzheim <marcolz@stack.nl> MFC after: 1 week Notes: svn path=/head/; revision=169550
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-201-4/+4
| | | | Notes: svn path=/head/; revision=140505
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-5/+10
| | | | Notes: svn path=/head/; revision=131504
* Correct the return value of vfork(2) and rfork(2) in theirRobert Drehmel2003-04-271-1/+1
| | | | | | | manual page function prototypes. Notes: svn path=/head/; revision=114131
* mdoc(7) police: markup laundry.Ruslan Ermilov2003-02-231-8/+8
| | | | Notes: svn path=/head/; revision=111285
* Zap another reference to !RFPROC being unsupported that I missed before.Tim J. Robbins2003-01-311-2/+0
| | | | Notes: svn path=/head/; revision=110135
* Don't use -compact in list of available flags. Fix tag width.Tim J. Robbins2003-01-311-1/+1
| | | | Notes: svn path=/head/; revision=110134
* !RFPROC has been supported for a while now.Tim J. Robbins2003-01-311-2/+1
| | | | Notes: svn path=/head/; revision=110133
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-2/+6
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Tidy up the syscall language.Ruslan Ermilov2002-12-181-7/+13
| | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=108028
* Update docs to reflect change in count of procs reserved for rootMike Silbersack2002-07-301-1/+1
| | | | | | | | | | | from 1 to 10. PR: kern/40515 Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> MFC after: 1 day Notes: svn path=/head/; revision=100907
* Document that rfork() will return EINVAL if flags not listed in theJohn Baldwin2001-12-191-0/+2
| | | | | | | manpage are passed in. Notes: svn path=/head/; revision=88158
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* mdoc(7) police: join split punctuation to macro calls.Ruslan Ermilov2001-08-101-2/+2
| | | | Notes: svn path=/head/; revision=81462
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79754
* Fix type-oMatthew Dillon2001-03-161-1/+1
| | | | | | | Submitted by: okazaki Notes: svn path=/head/; revision=74369
* mdoc(7) police: use canonical form of .Dd macro.Ruslan Ermilov2000-12-111-1/+1
| | | | Notes: svn path=/head/; revision=69857
* mdoc(7) police: fixed warnings.Ruslan Ermilov2000-11-201-4/+2
| | | | Notes: svn path=/head/; revision=68948
* Use Fx macro wherever possible.Ruslan Ermilov2000-11-141-1/+2
| | | | Notes: svn path=/head/; revision=68716
* Add pointers to rfork_thread(3)Peter Wemm2000-07-311-3/+12
| | | | Notes: svn path=/head/; revision=64042
* MFC 1.11.2.3 from -stable to -currentMatthew Dillon2000-07-251-6/+21
| | | | Notes: svn path=/head/; revision=63851
* Use `Er' variable to define first column width in ERRORS section. It wasAlexey Zelkin2000-05-041-1/+1
| | | | | | | initially suggested by mdoc(7) style, but was broken over the years Notes: svn path=/head/; revision=59954
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-021-2/+4
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57686
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+2
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48794
* Enable Linux threads support by default.Julian Elischer1999-01-261-0/+6
| | | | | | | | | | | | This takes the conditionals out of the code that has been tested by various people for a while. ps and friends (libkvm) will need a recompile as some proc structure changes are made. Submitted by: "Richard Seaman, Jr." <dick@tar.com> Notes: svn path=/head/; revision=43208
* Fixed style bug in pseudocode.Bruce Evans1997-09-071-1/+1
| | | | Notes: svn path=/head/; revision=29176
* Sort cross references.Wolfram Schneider1997-01-201-3/+3
| | | | Notes: svn path=/head/; revision=21907
* Add missing RETURN VALUES/ERRORS sections.Mike Pritchard1997-01-121-2/+12
| | | | Notes: svn path=/head/; revision=21579
* Updated the descriptions of the limits related to EAGAIN.Bruce Evans1996-09-291-5/+19
| | | | | | | Changed the error name width for rfork to match fork. Notes: svn path=/head/; revision=18562
* Fix the man page to reflect the recent addition of RFNOWAIT and the removal ofSujal Patel1996-04-181-4/+5
| | | | | | | Plan9 specific flags. Notes: svn path=/head/; revision=15303
* Added missing section numbers to a bunch of .Xr macros, orMike Pritchard1996-03-271-1/+1
| | | | | | | | converted them into .Fn macros where appropriate. Also fixed up some minor formatting problems. Notes: svn path=/head/; revision=14855
* rfork/minherit glue in libcPeter Wemm1996-02-231-0/+112
man pages adapted from OpenBSD's versions. Notes: svn path=/head/; revision=14224