about summary refs log tree commit diff
path: root/hurd/longjmp-ts.c
diff options
context:
space:
mode:
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>2023-01-12 10:58:53 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-02-01 08:42:11 -0300
commit98f9435f336cbee5d57a1a16373331ca1bc648db (patch)
treef6e57c478194afb2323db3cba00db96e7582164b /hurd/longjmp-ts.c
parent1e442efd57f231bf76030d7a30f2095d1261db20 (diff)
downloadglibc-98f9435f336cbee5d57a1a16373331ca1bc648db.tar.gz
glibc-98f9435f336cbee5d57a1a16373331ca1bc648db.tar.xz
glibc-98f9435f336cbee5d57a1a16373331ca1bc648db.zip
Linux: optimize clone3 internal usage
Add an optimization to avoid calling clone3 when glibc detects that
there is no kernel support.  It also adds __ASSUME_CLONE3, which allows
skipping this optimization and issuing the clone3 syscall directly.

It does not handle the the small window between 5.3 and 5.5 for
posix_spawn (CLONE_CLEAR_SIGHAND was added in 5.5).

Checked on x86_64-linux-gnu.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'hurd/longjmp-ts.c')
0 files changed, 0 insertions, 0 deletions