Hi,

I have this code where I put the standard output of my program from the screen to the pipe called "p4".

Code:
close(p4[0]);    
close(1);
dup(p4[1]);
close(p4[1]);
My question is, is there any way to undo this if later in the program I want to use again my screen as standard output?

Thank you.