Why dup()?

David Newall openssh at davidnewall.com
Thu Oct 12 00:00:56 AEDT 2017


On 10/10/17 05:18, David Newall wrote:
> If not that, how is a program that reads from ssh's output ever going 
> to see EOF?

Does anybody know?  It looks to me like the answer is "cannot", and I 
trust that nobody would claim that to be the preferred situation.

I realize it's  not quite as simple as not duplicating the file 
descriptors, but I believe that is close to the answer.

More information about the openssh-unix-dev mailing list