ast_comparator/test/student_data/handout/shlab-handout/cases/prev_13_tsh.c
void sigtstp_handler(int sig)
{
	pid_t pid = fgpid(jobs);

	if(pid > 0){ /* similar reason like above handler */
		if(kill(-pid, SIGTSTP) < 0){
			if(errno != ESRCH) /* similar reason like above error handler */
				unix_error("kill error");
		}
	}
  return;
}
/*
 * 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)
{
	pid_t pid = fgpid(jobs);
	if(pid > 0){ 
		if(kill(-pid, SIGTSTP) < 0){
			if(errno != ESRCH) 
				unix_error("kill error");
		}
	}
  return;
}
void sigtstp_handler ( int sig ) { pid_t pid = fgpid ( jobs ) ; if ( pid > 0 ) { if ( kill ( - pid , SIGTSTP ) < 0 ) { if ( errno != ESRCH ) unix_error ( " " ) ; } } 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 .
/* similar reason like above handler */ /* similar reason like above error handler */