ast_comparator/test/student_data/handout/shlab-handout/cases/reference_28_tsh.c
/* 
 * sigint_handler - The kernel sends a programming assignment help 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 programming assignment help 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 programming assignment help 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) 
{
  pid_t fgid = fgpid(jobs);
  if (fgid > 0) {
    kill(-fgid, SIGINT);
  }
}
void sigint_handler ( int sig ) { pid_t fgid = fgpid ( jobs ) ; if ( fgid > 0 ) { kill ( - fgid , SIGINT ) ; } }
sigint_handler - The kernel sends a programming assignment help SIGINT to the shell whenver the
    user types ctrl-c at the keyboard.
sigint_handler - The kernel sends a programming assignment help SIGINT to the shell whenver the user types ctrl - c at the keyboard .
/* get the foreground job pid and ssend the SIGINT to it. */