ast_comparator/test/student_data/handout/shlab-handout/cases/reference_10_tsh.c
/* 
 * waitfg - Block until process pid is no longer the foreground process
 */
Block until process pid is no longer the foreground process
Block until process pid is no longer the foreground process
void waitfg(pid_t pid)
{
    pause_flag = 0;
    pause();
    if (!pause_flag) {
        pause();
    }
    return;
}
void waitfg ( pid_t pid ) { pause_flag = 0 ; pause ( ) ; if ( ! pause_flag ) { pause ( ) ; } return ; }
waitfg - Block until process pid is no longer the foreground process
waitfg - Block until process pid is no longer the foreground process
/*sleep(10);*/ /*sleep(1);*/