Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: timeout problem in ssh sessions
- X-seq: zsh-users 12575
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: "ZSH User List" <zsh-users@xxxxxxxxxx>
- Subject: Re: timeout problem in ssh sessions
- Date: Thu, 14 Feb 2008 19:18:36 +0100
- In-reply-to: <27b8b8a0802130621x47568c7fo304848d02a1c6e76@xxxxxxxxxxxxxx>
- Mail-followup-to: "ZSH User List" <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080211233404.GA13398@xxxxxxxxx> <080212083755.ZM20121@xxxxxxxxxxxxxxxxxxxxxx> <20080212232947.GA13793@xxxxxxxxx> <080212200708.ZM20711@xxxxxxxxxxxxxxxxxxxxxx> <20080213134200.GB31852@xxxxxxxxx> <200802131349.m1DDnXRF004831@xxxxxxxxxxxxxx> <27b8b8a0802130621x47568c7fo304848d02a1c6e76@xxxxxxxxxxxxxx>
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