if(new_fd != -1 && new_fd != snapshot->current_fd[i]->number){
dup2(new_fd, snapshot->current_fd[i]->number);
//fprintf(stderr, "%p\n", fdopen(snapshot->current_fd[i]->number, "rw"));
if(new_fd != -1 && new_fd != snapshot->current_fd[i]->number){
dup2(new_fd, snapshot->current_fd[i]->number);
//fprintf(stderr, "%p\n", fdopen(snapshot->current_fd[i]->number, "rw"));