Why dup(), again and again?

Damien Miller djm at mindrot.org
Mon Oct 23 09:37:02 AEDT 2017


On Sun, 22 Oct 2017, David Newall wrote:

> When you suggested this before, I asked how that would help, but you 
> haven't answered that.  Instead, you belatedly repeat yourself.  You 
> said that you think this is good for "ill-behaved libraries". That's 
> wrong.  Any "ill-behaved library" on the remote machine already writes 
> to a closed descriptor.  You've presented a straw man, but I'm trying to 
> understand your concern: If you think that ssh (i.e. on the local 
> machine) uses an ill-behaved library, which one; and, what's wrong with 
> letting it try to write to a closed file?

fd reuse


More information about the openssh-unix-dev mailing list