Redirecting child output


With old_io, I’ve been able to daemonize a child process, redirecting it’s output to a logfile I setup for it. With new std::process, I no longer have the ability to set the stdout/stderr file descriptors in the child.

In other words, was StdioContainer::InheritFd(c_int), now is Stdio::inherit() without the integer parameter.

What can be done to have a child process send all its output to a logfile that the parent has created for this purpose, where the child outlasts the parent?

Follow-up question: RFC 517 section on “Stdin, Stdout, Stderr” says “To be added in a follow-up PR.” Is there any followup on this yet? Link please?


Yes: serves as the coordination point for these RFCs.