Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 20 Feb 2003 16:35:26 +0000
Message-ID: <767-Thu20Feb2003163526+0000-starksb@ebi.ac.uk>
From: David Starks-Browning <starksb@ebi.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Jim Kleckner <jek-cygwin@kleckner.net>
Cc: cygwin@cygwin.com
Subject: Re: rxvt dialog at shutdown suggests failure to exit due to ssh-agent?
In-Reply-To: <3E55007F.3010500@kleckner.net>
References: <3E53C564.4070007@kleckner.net>
	<5420-Thu20Feb2003113550+0000-starksb@ebi.ac.uk>
	<3E55007F.3010500@kleckner.net>

On Thursday 20 Feb 03, Jim Kleckner writes:
> Thank you for the suggestion.
> 
> David Starks-Browning wrote:
> 
> > On Wednesday 19 Feb 03, Jim Kleckner writes:
> [snip]
> > If *all* shells source that line, then you have the problem that the
> > first one to exit will kill ssh-agent, and maybe you don't want that.
> > You could put something a bit more sophisticated in your .bash_profile
> > (or whatever) to identify a "master" shell, depending on your
> > requirements.
> 
> Unfortunately, this is exactly what keychain is for -
> to start the agent in one shell and then share access
> from many shells.  I start up and shut down many rxvt/bash
> shells during the day without having to provide my
> passphrase.  Stopping the agent with keychain is easy by
> just typing "keychain -k".  I forget to do that just
> about every time.

Your exit trap function could be something that checks to see if it's
the last rxvt window remaining, and if so, runs "keychain -k".

(I agree, this is a workaround.  It would be nicer if ssh-agent would
die quickly and quietly at Windows logout or shutdown.  I don't know
if that's possible.)

Regards,
David


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

