struct siginfo info;

info.si_signo = SIGUSR2;
info.si_errno = 0;
info.si_code = SI_QUEUE;
info.si_int = flags;

if (send_sig_info(SIGUSR2, &info, p))
  send_sig_info(SIGINT, (struct siginfo *)1, p);