glibc/sysdeps/unix/sysv/linux/arm/be
Adhemerval Zanella c32c868ab8 posix: Add _Fork [BZ #4737]
Austin Group issue 62 [1] dropped the async-signal-safe requirement
for fork and provided a async-signal-safe _Fork replacement that
does not run the atfork handlers.  It will be included in the next
POSIX standard.

It allow to close a long standing issue to make fork AS-safe (BZ#4737).
As indicated on the bug, besides the internal lock for the atfork
handlers itself; there is no guarantee that the handlers itself will
not introduce more AS-safe issues.

The idea is synchronize fork with the required internal locks to allow
children in multithread processes to use mostly of standard function
(even though POSIX states only AS-safe function should be used).  On
signal handles, _Fork should be used intead and only AS-safe functions
should be used.

For testing, the new tst-_Fork only check basic usage.  I also added
a new tst-mallocfork3 which uses the same strategy to check for
deadlock of tst-mallocfork2 but using threads instead of subprocesses
(and it does deadlock if it replaces _Fork with fork).

[1] https://austingroupbugs.net/view.php?id=62
2021-06-28 15:55:56 -03:00
..
Implies arm: Split BE/LE abilist 2019-08-29 09:58:21 -03:00
ld.abilist ld.so: Do not export free/calloc/malloc/realloc functions [BZ #25486] 2020-02-15 11:01:23 +01:00
libanl.abilist y2038: Add support for 64-bit time on legacy ABIs 2021-06-15 10:42:11 -03:00
libBrokenLocale.abilist arm: Split BE/LE abilist 2019-08-29 09:58:21 -03:00
libc.abilist posix: Add _Fork [BZ #4737] 2021-06-28 15:55:56 -03:00
libcrypt.abilist arm: Split BE/LE abilist 2019-08-29 09:58:21 -03:00
libdl.abilist dlfcn: Move dlopen into libc 2021-06-03 08:26:04 +02:00
libm.abilist New exp10f version without SVID compat wrapper 2020-06-19 12:08:47 -03:00
libnsl.abilist arm: Split BE/LE abilist 2019-08-29 09:58:21 -03:00
libpthread.abilist nptl: Remove remaining code from libpthread 2021-05-21 22:35:01 +02:00
libresolv.abilist arm: Split BE/LE abilist 2019-08-29 09:58:21 -03:00
librt.abilist Linux: Move timer_settime, __timer_settime64 from librt to libc 2021-06-28 09:51:01 +02:00
libthread_db.abilist arm: Split BE/LE abilist 2019-08-29 09:58:21 -03:00
libutil.abilist arm: Split BE/LE abilist 2019-08-29 09:58:21 -03:00
Versions sysvipc: Set ipc_perm mode as mode_t (BZ#18231) 2019-10-10 17:33:27 -03:00