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 8#define ARGV_1 12345 9#define ARGV_2 34567 10int main(){ 11 12 int tgid, tid; 13 tgid = ARGV_1; 14 tid = ARGV_2; 15 16 if (tgkill(tgid, tid, SIGPROF) == -1 && errno != ESRCH) { 17 perror("tgkill failed"); 18 } 19 20 return 0; 21}