• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <errno.h>
2 #include <signal.h>
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <sys/tgkill.h>
6 #include "test.h"
7 
main(int argc,char * argv[])8 int main(int argc, char *argv[]){
9 
10     int tgid, tid;
11 
12     tgid = atoi(argv[1]);
13     tid = atoi(argv[2]);
14 
15     if (tgkill(tgid, tid, SIGPROF) == -1 && errno != ESRCH) {
16         perror("tgkill failed");
17     }
18 
19     return 0;
20 }