too many close calls for non-opened fds

Logu logsnaath at gmx.net
Wed Aug 23 22:06:15 EST 2006


>> Actually that was a mistake on my part. When -r option is used the close 
>> call occurs only during startup and not for every connection. During 
>> startup with -r option we get around 60K close calls.
>> We are about to do a fix for this issue on HP-UX (without -r option). The 
>> approach is to find out the open fds and close the unwanted ones. Will 
>> this be a valid approach.
>
> I would think that the overhead of determining if an FD is open wouldn't 
> be that far off from closing it.
>
> rick jones
>

How about saving the currently opened fds before re-exec and passing it to 
the re-execed process and closing it both on the original process and 
re-execed process. I am sorry if it didnt make any sense.

-logu 





More information about the openssh-unix-dev mailing list