Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3FCA8656.4090802@hack.kampbjorn.com> Date: Mon, 01 Dec 2003 01:07:50 +0100 From: Hack Kampbjorn User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en,da,es,ca MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] Updated: keychain-2.0.3-1 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Karl M wrote: > Hi All... > > I believe I found a small bug in the latest keychain. For Cygwin, keychain > now does a "ps -e -u -f" to look for ssh-agent processes...I > believe it should be a "ps -u -f" instead. > > The reason is as follows...the -e shows processes for all users. If multiple > users have ssh-agent processes hanging around, keychain can find the wrong > one and this produces some strange results. I may be the only one to see this > because ssh-agent processes don't usually survive a logoff. I launch keychain > from a service for each user (that wants the feature) so that the agent stays > around for multiple logon/off sessions...that way, they live untill the next > reboot. I have never run Cygwin as a multiuser system, but I take your word for it. My experience with ps while testing previous version of keychain was that it ignores any options it doesn't understand. I would not be surprised if it ignored the -u after an -e 8-) > > The attached patch file removes the -e option and also creates a third output > file in the .keychain directory. The new file is ~/.keychain/${HOSTNAME}.cmd > so that programs launched from a windows command shell can also use keychain. > Please don't do that. If you have fixed/added two functionalities include two patches, it's so much easier to evaluate that way. I'll release an updated keychain with the ps fix soon (tomorrow?). For the cmd part I cannot see any cmd.exe specific code, can it be renamed to .bat so the '95 family can also run it? And how useful is it, do people actually use cmd.exe as their cygwin shell? > > The second attachment is a script to launch keychain as a service for those > interested in surviving multiple logon/off sessions. Just use it to create a > service for each user that wants the feature. The service only sets up the > ssh-agent. The keys are loaded from the .profile and the passphrase(s) are > entered then. > > Thanks, > > ...Karl -- Med venlig hilsen / Kind regards Hack Kampbjørn -- 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/