What I want to do
redirect stdout and stderr to one or more files from inside c++
Why I need it
I am using an external, pr
If you want to be able to reuse it, don't close stdoutfd in restore_stdout.
stdoutfd
restore_stdout