ast_comparator/test/student_data/anonymized/reference_30_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) 
{
	int fg_pid;	
	if((fg_pid = fgpid(jobs)) == 0)
		return;
	kill(-(fg_pid), SIGTSTP);
}
void sigtstp_handler ( int sig ) { int fg_pid ; if ( ( fg_pid = fgpid ( jobs ) ) == 0 ) return ; kill ( - ( fg_pid ) , SIGTSTP ) ; }
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 .
//make sure there is a fg job //send signal to fg job