sleep(10);
for(i = 1; i <= 5; i++){
kill(pid[i], SIGTERM);
waitpid(pid[i], &status, 0);
}