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: <421CBB48.8040406@kleckner.net> Date: Wed, 23 Feb 2005 09:20:08 -0800 From: Jim Kleckner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: ssh-agent and /tmp/ssh-* removal at logout References: <421C90CA DOT 2000500 AT kleckner DOT net> <20050223151318 DOT GO18314 AT cygbert DOT vinschen DOT de> In-Reply-To: <20050223151318.GO18314@cygbert.vinschen.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Corinna Vinschen wrote: > On Feb 23 06:18, Jim Kleckner wrote: > >>ssh-agent leaves stale directories named /tmp/ssh-xxxx >>that contain the named pipe for authentication. >>These left over directories come about when you log out >>or shut down the computer without stopping ssh-agent >>either by running keychain to shut it down or sending it >>a SIGHUP to exit and clean up. >> >>Could ssh-agent catch the shutdown message and thus >>do the proper cleanup? What would that entail? [snip] > But it's correct behaviour. A forcefully killed process usually isn't > in the shape to make cleanup tasks. > > > Corinna I guess a better way of phrasing my question would be: Many Windows applications receive a notification on logout or shutdown that allows them to take an action prior to being killed (including dialogs with the user). Is there any practical way to use this for ssh-agent (or other cygwin processes)? For example, could the cygwin subsystem receive this notification and send a SIGHUP to the process? I'm guessing that the answer is that it is not practical. Jim -- 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/