glibc/sysdeps/unix/sysv/linux/s390
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
..
bits y2038: Use a common definition for stat 2021-06-15 10:42:11 -03:00
fpu
s390-32 posix: Add _Fork [BZ #4737] 2021-06-28 15:55:56 -03:00
s390-64 posix: Add _Fork [BZ #4737] 2021-06-28 15:55:56 -03:00
sys Add PTRACE_SYSEMU and PT_SYSEMU_SINGLESTEP from Linux 5.12 for s390 2021-05-10 20:12:41 +00:00
Implies
Makefile
Versions
configure
configure.ac
dl-cache.h
dl-procinfo.h
elision-conf.c
elision-conf.h
elision-lock.c
elision-timed.c
elision-trylock.c
elision-unlock.c
htm.h
ipc_priv.h
jmp-unwind.c nptl: Move pthreadP.h into sysdeps directory 2021-06-22 09:51:10 +02:00
kernel-features.h
kernel_sigaction.h
ldconfig.h
ldd-rewrite.sed
libpthread-compat.c
localplt.data
longjmp_chk.c
mmap_internal.h
nldbl-abi.h
opensock.c
readelflib.c
rt-sysdep.S
sa_len.c
sigcontextinfo.h
sysconf.c
sysdep.h
tst-ptrace-singleblock.c
ucontext_i.sym
xstatver.h