Created
December 25, 2013 07:07
-
-
Save ymmt2005/8120885 to your computer and use it in GitHub Desktop.
Kill a specific thread externally by using tgkill(2).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <signal.h> | |
#include <sys/syscall.h> /* For SYS_xxx definitions */ | |
#include <sys/types.h> | |
#include <unistd.h> | |
int main() { | |
pid_t tgid=18456; | |
pid_t tid=24671; | |
return syscall(SYS_tgkill, tgid, tid, SIGABRT); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment