Konstantin Belousov 49ad342cc1 Add _Fork()
Current POSIX standard requires fork() to be async-signal safe.  Neither
our implementation, nor implementations in other operating systems are,
and practically it is impossible to make fork() async-signal safe without
too much efforts.  Also, that would put undue requirement that all atfork
handlers should be async-signal safe as well, which contradicts its main
use.

As result, Austin Group dropped the requirement, and added a new function
_Fork() that should be async-signal safe, but it does not call atfork
handlers.  Basically, _Fork() can be implemented as a raw syscall.

Release of glibc 2.34 added _Fork(), do the same for FreeBSD.
Clarify threading behavior for fork() in the manpage.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D31378
2021-08-03 21:19:32 +03:00
..
2020-12-16 09:02:09 +00:00
2020-05-15 11:58:01 +00:00
2017-12-08 22:06:18 +00:00
2021-06-11 21:18:04 +02:00
2020-05-12 18:17:57 +00:00
2017-11-27 17:18:31 +00:00
2018-12-23 20:51:13 +00:00
2021-02-23 20:08:10 +02:00
2020-02-02 19:45:12 +00:00
2021-07-15 19:40:28 +03:00
2021-08-03 21:19:32 +03:00
2021-07-15 19:40:28 +03:00