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

Re: timeout problem in ssh sessions - I found the culprit: mouse.zsh



On Thu, Feb 14, 2008 at 05:44:56PM +0100, Andy Spiegl wrote:
> On 2008-02-14, 16:25, Stephane CHAZELAS wrote:
> > 
> > xclip or xsel fork a background process in order to own the
> > CLIPBOARD selection. Having something else owning the selection
> > (by having another app copying some text) should terminate that
> > xclip/xsel and release your ssh session.
> 
> YES, that's it!  There is a xsel process hanging around until
> I press Ctrl-U or Ctrl-Y in a different shell.  As soon as I
> do that the ssh connection terminates, too.
> 
> Now I am thinking whether it would be easily possible to kill
> this process in .zlogout.  Does mouse.zsh keep track of the pid?
> A "killall xsel" might not always be what I want, right?
[...]

Doing a xsel -b -c
should terminate the background xsel or xclip.

-- 
Stephane



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