Question: I/O system call question. If a process used system call dup2 () to have standard output point to a file (named dog). Then issued a

I/O system call question.
If a process used system call dup2 () to have standard output point to a file (named dog). Then issued a fork() system call to spawn a child. Then the child code issued an exec () system call to execute a different program.
Please explain what is happening to the standard output of the child process? Where does it go?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!