Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #define _GNU_SOURCE
  2. #include <unistd.h>
  3. #include <sys/syscall.h>
  4. #include <sys/types.h>
  5. #include <signal.h>
  6.  
  7. int
  8. main(int argc, char *argv[])
  9. {
  10. pid_t tid;
  11.  
  12. tid = syscall(SYS_gettid);
  13. tid = syscall(SYS_tgkill, getpid(), tid, SIGHUP);
  14. }
  15.  
  16. ///////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement