Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _GNU_SOURCE
- #include <unistd.h>
- #include <sys/syscall.h>
- #include <sys/types.h>
- #include <signal.h>
- int
- main(int argc, char *argv[])
- {
- pid_t tid;
- tid = syscall(SYS_gettid);
- tid = syscall(SYS_tgkill, getpid(), tid, SIGHUP);
- }
- ///////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement