diff options
| author | Jeff Brown <jeffbrown@google.com> | 2011-11-18 15:17:07 -0800 |
|---|---|---|
| committer | Jeff Brown <jeffbrown@google.com> | 2011-11-18 16:40:48 -0800 |
| commit | 10c8ce59a40a1d8ae8f49145eca365b364aabe58 (patch) | |
| tree | 5157c1d270cda4e2933a0e7fedf8b5ed6b920f96 /libc/include/sys/linux-unistd.h | |
| parent | 4b469eae40368913b2841b390dada6c58296c602 (diff) | |
| download | bionic-10c8ce59a40a1d8ae8f49145eca365b364aabe58.zip bionic-10c8ce59a40a1d8ae8f49145eca365b364aabe58.tar.gz bionic-10c8ce59a40a1d8ae8f49145eca365b364aabe58.tar.bz2 | |
Add tgkill syscall.
Use tgkill instead of tkill to implement pthread_kill.
This is safer in the event that the thread has already terminated
and its id has been reused by a different process.
Change-Id: Ied715e11d7eadeceead79f33db5e2b5722954ac9
Diffstat (limited to 'libc/include/sys/linux-unistd.h')
| -rw-r--r-- | libc/include/sys/linux-unistd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/include/sys/linux-unistd.h b/libc/include/sys/linux-unistd.h index ae9077f..f463127 100644 --- a/libc/include/sys/linux-unistd.h +++ b/libc/include/sys/linux-unistd.h @@ -32,6 +32,7 @@ int setresgid (gid_t, gid_t, gid_t); void* __brk (void*); int kill (pid_t, int); int tkill (pid_t tid, int sig); +int tgkill (pid_t tgid, pid_t tid, int sig); int __ptrace (int request, int pid, void* addr, void* data); int __set_thread_area (void* user_desc); int __getpriority (int, int); |
