about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/csky
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-01-28 17:13:41 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-05-17 10:33:46 -0300
commit56cf9e8eec3bdc0ce44efeda373de9d6b825ea1e (patch)
tree1867665925ea0e43ff9ba08e2c3409f90abf7988 /sysdeps/unix/sysv/linux/csky
parent32dd8c251a431c90451092653f0231a4ad2665e5 (diff)
downloadglibc-56cf9e8eec3bdc0ce44efeda373de9d6b825ea1e.tar.gz
glibc-56cf9e8eec3bdc0ce44efeda373de9d6b825ea1e.tar.xz
glibc-56cf9e8eec3bdc0ce44efeda373de9d6b825ea1e.zip
linux: Add pidfd_send_signal
This was added on Linux 5.1(3eb39f47934f9d5a3027fe00d906a45fe3a15fad)
as a way to avoid the race condition of using kill (where PID might be
reused by the kernel between between obtaining the pid and sending the
signal).

If the siginfo_t argument is NULL then pidfd_send_signal is equivalent
to kill.  If it is not NULL pidfd_send_signal is equivalent to
rt_sigqueueinfo.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/csky')
-rw-r--r--sysdeps/unix/sysv/linux/csky/libc.abilist1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/csky/libc.abilist b/sysdeps/unix/sysv/linux/csky/libc.abilist
index 201ec9a966..22618c7aaa 100644
--- a/sysdeps/unix/sysv/linux/csky/libc.abilist
+++ b/sysdeps/unix/sysv/linux/csky/libc.abilist
@@ -2654,3 +2654,4 @@ GLIBC_2.35 epoll_pwait2 F
 GLIBC_2.35 posix_spawn_file_actions_addtcsetpgrp_np F
 GLIBC_2.36 pidfd_getfd F
 GLIBC_2.36 pidfd_open F
+GLIBC_2.36 pidfd_send_signal F