sshd and file descriptors

Frank Cusack fcusack at fcusack.com
Thu Jun 27 11:25:05 EST 2002


On Wed, Jun 26, 2002 at 10:18:23PM -0300, Andreas Hasenack wrote:
> Just use:
> 
>                         for n in `seq 3 100`; do
>                                 eval "exec $n<&-"
>                         done
> 
> This will close those fds. Not very ellegant, but it's what I was doing
> for now.
> 

Shame on me.  Yours is much better.  Shouldn't it be '$n>&-'?

/fc



More information about the openssh-unix-dev mailing list