tkill(2) System Calls Manual tkill(2) tkill, tgkill - C (libc, -lc) #include /* SIG* */ #include /* SYS_* */ #include [[deprecated]] int syscall(SYS_tkill, pid_t tid, int sig); #include int tgkill(pid_t tgid, pid_t tid, int sig); Note: glibc provides no wrapper for tkill(), necessitating the use of syscall(2). tgkill() sig ID tid tgid. , kill(2) (.., ) . tkill() -- tgkill(). -, , . . , . 0. -1, errno . EAGAIN RLIMIT_SIGPENDING sig . EAGAIN sig . EINVAL , . EPERM . . kill(2) . ESRCH ( ). Linux. tkill() Linux 2.4.19 / 2.5.4. tgkill() Linux 2.5.75, glibc 2.30. . CLONE_THREAD clone(2) . clone(2), gettid(2), kill(2), rt_sigqueueinfo(2) () Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . tkill(2)