X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=YqYqTK2GOAqiWVAa bPlki49yYqXp3hf4V7DdlzFingo22zqNZY3LkrD5TKOIaePQogWjsMDbM/+wlYLK x18i8i9FbpUkrSi92zN2vDyh54zlYwBbTtyqvfLkwIqinDOiiZWnbcTaEEM3WUoF bsx/ntNLvM5JpvSU3lbmJYJQ9DA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=NGJqZIjuJYTbVYFncDh+LH 50/q0=; b=cYwZKfJSHIdBcrL++I9o4EK0OhqaTimh5JO0WX5oNFjyLxDn8paV2a qGmya8jVJcrhGI1qQODviG2N1ugONx8ZnaeXtDPNZ2KV3cEF9I4gR4P/kvIxzzBJ AryrVfIHiiizlY7n7JG0Aut3YGc2hrWYFhfC325vRTtIloetacpC4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: smtp-out4.electric.net Subject: Re: ssh-agent doesn't die To: References: <319e26c0-32f0-40b7-2137-c7de170a3486 AT rl DOT ac DOT uk> <20191103190052 DOT GI3372 AT calimero DOT vinschen DOT de> From: Tim Adye Message-ID: <38e07653-1a09-c398-d2ab-557965046b93@rl.ac.uk> Date: Mon, 4 Nov 2019 11:49:07 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191103190052.GI3372@calimero.vinschen.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-EsetResult: clean, is OK X-EsetId: 37303A290F3E2369667766 X-Outbound-IP: 130.246.132.232 X-Env-From: tim DOT adye AT stfc DOT ac DOT uk X-Proto: esmtps X-Revdns: exch01.rl.ac.uk X-TLS: TLSv1.2:ECDHE-RSA-AES256-SHA384:256 X-Authenticated_ID: X-PolicySMART: 3590380 X-IsSubscribed: yes Note-from-DJ: This may be spam On 03/11/2019 19:00, Corinna Vinschen wrote: > On Sep 27 00:42, Tim Adye wrote: >> Hi, >> >> I have noticed a (new?) problem with using ssh-agent to start a session, eg. >> with >> >>   ssh-agent xterm & >> >> When the xterm (or whatever) command completes, the ssh-agent process is >> still left running in the background. It should stop once its subprocess is >> done. >> >> As a simple test example, consider: >> >> /bin/ssh-agent /bin/sleep 10 >> >> While the sleep is still running, ps shows: >> >>       PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND >>      1694    1693    1694       1576  ?          22534 00:01:10 >> /usr/bin/ssh-agent >>      1653       1    1653      11740  cons1      22534 00:00:37 >> /usr/bin/bash >>      1693    1653    1693       1552  cons1      22534 00:01:10 >> /usr/bin/sleep >> [...] >> Once the sleep finishes, ps shows: >> >>       PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND >>      1694    1693    1694       1576  ?          22534 00:01:10 >> /usr/bin/ssh-agent >>      1653       1    1653      11740  cons1      22534 00:00:37 >> /usr/bin/bash >> >> ie. ssh-agent is still running, though its PPID no longer exists. > I pushed a patch and created new developer snapshots. Please test the > latest from https://cygwin.com/snapshots/ Hi Corinna, That fixes the problem! With cygwin1-20191103.dll.xz installed as /usr/bin/cygwin1.dll, all my ssh-agent processes exit properly. > Thanks, > Corinna Thanks for the excellent fix, Tim. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple