I've seen this Question.
It says that we could make a copy of both the file descriptors of stdin and stdout, in order for us to reopen them at a later stage in the program.
My questions:
- Could we open the file "/dev/tty" in O_WRONLY mode in order to reopen stdout?
- Is this the correct method of doing it?
- Is there any similar method to reopen stdin and stderr??