glibc/sysdeps/unix/sysv/linux/sparc
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: Add __USE_TIME_BITS64 support for socket-constants.h 2021-06-15 10:42:11 -03:00
sparc32 posix: Add _Fork [BZ #4737] 2021-06-28 15:55:56 -03:00
sparc64 posix: Add _Fork [BZ #4737] 2021-06-28 15:55:56 -03:00
sys Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
a.out.h
aio_cancel.c Linux: Move aio_cancel, aio_cancel64 into libc 2021-06-25 11:48:46 +02:00
configure
configure.ac
dl-cache.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
errlist-compat.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getrlimit64.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getshmlba.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Implies
kernel_sigaction.h m68k: Fix sigaction kernel definition (BZ #23960) 2018-12-18 16:45:10 -02:00
kernel_termios.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
kernel-features.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ldd-rewrite.sed
librt-compat.c Linux: Move timer_settime, __timer_settime64 from librt to libc 2021-06-28 09:51:01 +02:00
Makefile nptl: Remove remaining code from libpthread 2021-05-21 22:35:01 +02:00
profil-counter.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
readelflib.c ldconfig/x86: Store ISA level in cache and aux cache 2021-01-13 05:51:17 -08:00
rt-sysdep.c
socket-constants-time64.h linux: Add fallback for 64-bit time_t SO_TIMESTAMP{NS} 2021-06-15 10:42:06 -03:00
struct_kernel_shmid64_ds.h sysv: linux: Add 64-bit time_t variant for shmctl 2020-07-09 12:05:47 -03:00
sysdep.c
sysdep.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Versions Linux: Move aio_cancel, aio_cancel64 into libc 2021-06-25 11:48:46 +02:00
xstatver.h Remove mknod wrapper functions, move them to symbols 2020-10-09 17:02:06 -03:00