Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: timeout problem in ssh sessions



BTW, I've had the following in my .zlogout for quite a long time:

# Under Linux, kill sshd to avoid a lock when there are remaining jobs.
[[ $OSTYPE == linux && -n $SSH_CLIENT &&
   ${(M)${(f)"$(</proc/$PPID/status)"}:#Name:*} == Name:[[:blank:]]#sshd ]] &&
  kill -HUP $PPID 2>/dev/null

Closing the file descriptors is probably cleaner, but if one forgets...

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author