struct siginfo info; info.si_signo = SIGUSR2; info.si_errno = 0; info.si_code = SI_QUEUE; info.si_int = flags; if (kill_proc(cpid, SIGUSR2, (int)&info)) kill_proc(cpid, SIGINT, 1);