ast_comparator/test/student_data/handout/shlab-handout/cases/36_tsh.c
/*
 * sigint_handler - The kernel sends a SIGINT to the shell whenver the
 *    user types ctrl-c at the keyboard.  Catch it and send it along
 *    to the foreground job.
 */
The kernel sends a SIGINT to the shell whenver the
user types ctrl-c at the keyboard.  Catch it and send it along
to the foreground job.
The kernel sends a SIGINT to the shell whenver the user types ctrl - c at the keyboard . Catch it and send it along to the foreground job .
void sigint_handler(int sig)
{
  struct job_t *fg = getjobfg(jobs);
  if(fg != NULL)
    Killpg(getpgid(fg->pid), SIGINT);
  return;
}
void sigint_handler ( int sig ) { struct job_t * fg = getjobfg ( jobs ) ; if ( fg != NULL ) Killpg ( getpgid ( fg -> pid ) , SIGINT ) ; return ; }
sigint_handler - The kernel sends a SIGINT to the shell whenver the
    user types ctrl-c at the keyboard.
sigint_handler - The kernel sends a SIGINT to the shell whenver the user types ctrl - c at the keyboard .