execvをする前にsetpgrpするのと,execvで呼ぶプログラムの中でsetpgrpする
のは何が異なるのでしょうか?
if(fork() == 0){
 setpgrp();
 execv(a, b);
}