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