too many close calls for non-opened fds
Markus Friedl
markus.r.friedl at arcor.de
Thu Aug 17 07:41:50 EST 2006
On Wed, Aug 16, 2006 at 02:25:05PM -0700, Carson Gaspar wrote:
> --On Wednesday, August 16, 2006 10:56 PM +0200 Markus Friedl
> <markus.r.friedl at arcor.de> wrote:
>
> > if a file is opened and the resource limit is decreased,
> > then looping to the resource limit will miss some open files.
>
> Does any UNIX variant have a "close all my open fds except for these"
openbsd has closefrom(2), and openssh tries to emulate this
syscall if it's not available.
More information about the openssh-unix-dev
mailing list