On 3/2/18 9:23 AM, Steven Schveighoffer wrote:
On 3/1/18 11:50 PM, Nick Sabalausky (Abscissa) wrote:
How could this be accomplished? Is it even possible?

You'd have to do this in the parent. You can duplicate the file descriptor, so that writing to either goes to the same spot, but you can't "fork" the file descriptor, so that writing to one goes to 2 spots.

Hm.. you could potentially do this via an intermediary process that does the copying. Then you could avoid writing the buffering code in your parent or child.

i.e. something like the Unix tee command.

-Steve

Reply via email to