-
-
Save LeMeteore/c569afd5e6a3470ea249c408b1e54b78 to your computer and use it in GitHub Desktop.
Kill a specific thread externally by using tgkill(2).
This file contains hidden or 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