Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <BAY19-F9259BCE8C7D9772EB64C6B55B0@phx.gbl>
X-Originating-Email: [karlm30@hotmail.com]
X-Sender: karlm30@hotmail.com
In-Reply-To: <42270017.7C75FD99@dessent.net>
From: "Karl M" <karlm30@hotmail.com>
To: cygwin@cygwin.com
Subject: Re: keychain service--hanging in ssh-add
Date: Thu, 03 Mar 2005 06:49:15 -0800
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
X-OriginalArrivalTime: 03 Mar 2005 14:50:00.0879 (UTC) FILETIME=[46BCBBF0:01C52000]
X-IsSubscribed: yes



>From: Brian Dessent
>Subject: Re: keychain service--hanging in ssh-add
>Date: Thu, 03 Mar 2005 04:16:23 -0800
>
>Karl M wrote:
>
> > I tracked it down. It is not a problem with keychain, openssh or cygwin.
> >
> > Occasionally, on this particular laptop (XP SP2), the user can reboot, 
>log
> > in and start a bash shell before all of the services are running or 
>while
> > they are still starting. Gotta love Microsoft. So that was causing the
> > problem.
>
>You can solve this by using the --dep option of cygrunsrv when you
>install the service.  For example I use "--dep Tcpip" or "--dep
>dnscache" for Cygwin services that depend on TCP/IP networking and/or
>name resolution.
>
I do use --dep as needed. The problem here is the other way around. The user 
is logging in and starting before the service finished starting. XP in its 
desire to look like it starts up quickly is letting the user in very early.

So I guard against this by creating a file after the keychain service 
finishes launching ssh-agent...then my .profile leaves keychain alone if the 
service has not finished starting.

Thanks,

...Karl



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

