too many close calls for non-opened fds

Logu logsnaath at gmx.net
Sat Aug 19 20:57:11 EST 2006


>> > sshd closes all fd's unconditionally. It should only happen once per
>> > sshd invocation when reexec is disabled.
>>
>> I have attached a patch that prevents calling closefrom() when re-exec is
>> disabled. Your comments are welcome.
>
> Why do you want to do this? The closefrom is run only *once* per time
> sshd is started, not for every connection.
>
> -d
>
Hi Damien

I understand what you are saying. But even when closefrom is called only 
once per sshd is started, we see lot of close calls. Do you see some side 
effects in doing the fix the way I did. Your comments will be appreciated.

Thanks
-logu 




More information about the openssh-unix-dev mailing list