From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112742 invoked by alias); 3 Nov 2019 19:01:06 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 112700 invoked by uid 89); 3 Nov 2019 19:01:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-106.2 required=5.0 tests=AWL,BAYES_05,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=xterm, Cygwin, H*F:D*cygwin.com, cygwincom X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.17.24) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 03 Nov 2019 19:01:03 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MK3a4-1ifATb2zYk-00LaDk; Sun, 03 Nov 2019 20:00:53 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id C80A9A8066D; Sun, 3 Nov 2019 20:00:52 +0100 (CET) Date: Sun, 03 Nov 2019 19:01:00 -0000 From: Corinna Vinschen To: Tim Adye Cc: cygwin@cygwin.com Subject: Re: ssh-agent doesn't die Message-ID: <20191103190052.GI3372@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: Tim Adye , cygwin@cygwin.com References: <319e26c0-32f0-40b7-2137-c7de170a3486@rl.ac.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="T6xhMxlHU34Bk0ad" Content-Disposition: inline In-Reply-To: <319e26c0-32f0-40b7-2137-c7de170a3486@rl.ac.uk> User-Agent: Mutt/1.12.1 (2019-06-15) X-SW-Source: 2019-11/txt/msg00002.txt.bz2 --T6xhMxlHU34Bk0ad Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2251 On Sep 27 00:42, Tim Adye wrote: > Hi, >=20 > I have noticed a (new?) problem with using ssh-agent to start a session, = eg. > with >=20 > =C2=A0 ssh-agent xterm & >=20 > 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. >=20 > As a simple test example, consider: >=20 > /bin/ssh-agent /bin/sleep 10 >=20 > While the sleep is still running, ps shows: >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 PID=C2=A0=C2=A0=C2=A0 PPID=C2=A0=C2=A0=C2= =A0 PGID=C2=A0=C2=A0=C2=A0=C2=A0 WINPID=C2=A0=C2=A0 TTY=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 UID=C2=A0=C2=A0=C2=A0 STIME COMMAND > =C2=A0=C2=A0=C2=A0=C2=A0 1694=C2=A0=C2=A0=C2=A0 1693=C2=A0=C2=A0=C2=A0 16= 94=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1576=C2=A0 ?=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 22534 00:01:10 > /usr/bin/ssh-agent > =C2=A0=C2=A0=C2=A0=C2=A0 1653=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1=C2=A0= =C2=A0=C2=A0 1653=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 11740=C2=A0 cons1=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 22534 00:00:37 > /usr/bin/bash > =C2=A0=C2=A0=C2=A0=C2=A0 1693=C2=A0=C2=A0=C2=A0 1653=C2=A0=C2=A0=C2=A0 16= 93=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1552=C2=A0 cons1=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 22534 00:01:10 > /usr/bin/sleep > [...] > Once the sleep finishes, ps shows: >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 PID=C2=A0=C2=A0=C2=A0 PPID=C2=A0=C2=A0=C2= =A0 PGID=C2=A0=C2=A0=C2=A0=C2=A0 WINPID=C2=A0=C2=A0 TTY=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 UID=C2=A0=C2=A0=C2=A0 STIME COMMAND > =C2=A0=C2=A0=C2=A0=C2=A0 1694=C2=A0=C2=A0=C2=A0 1693=C2=A0=C2=A0=C2=A0 16= 94=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1576=C2=A0 ?=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 22534 00:01:10 > /usr/bin/ssh-agent > =C2=A0=C2=A0=C2=A0=C2=A0 1653=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1=C2=A0= =C2=A0=C2=A0 1653=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 11740=C2=A0 cons1=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 22534 00:00:37 > /usr/bin/bash >=20 > 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/ Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer --T6xhMxlHU34Bk0ad Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl2/I+QACgkQ9TYGna5E T6B6bA/+K+p/65qk0gnF1nwV2y/DE3RGPyrrKf2NGS2xcANvZGvIFNZhjKsqvXVf kWWbhOumjD9X2dSpPCBNND4FhAtBeQU4C/s1F0j1yKXP4MPhy8hwXxio/rlAEqSv oVLKx1IIfTfZFRhWUV2/7ioyPVn79AUL12NTDaifs8DvMFteyxVpVwmpo3w61mWr EdEw+kMXFpo9eTpwulVDko7f6QBveIXlUKs8IRuT9q7TvvOLYYbdkEmtdo/Trhtq VbUDCD3WBmsytoYCof7gzuxbOtr1vxbCyXIN7vUkHyUWB8QrHBaM3KGFAqAFOWpN J8tW3qXHWKe2Lhiqnu8kIHkPWWv5ONNT1P7/RRWlXl3bMS2y3dyN+yWnJFphp5VO 0qsLWa9SpUYrD9xy8/a/SdhcBavyzFZoF4kQ3UqG7aZ3/B6ia9O0gjGg53dQ1sEY ZSWfHClGPSZ494r83f1W4heRAWbn0M/YTRpwg2t0tXISE9xbSviM+HMKATa2mNf/ AxQy3Nc0MTYzqq/070DjseCCKFmdBp9aszTbBpoqNvwSqL3EfGlvGs7wom4LePl8 rP1SyXNTvZLKnGjuu6vmj6Sd7/pAZTME2wZfDog3+DfMjq9N5d/3DT2E4w2i3QwA LsT1lu4dtSC4hBon5NjpuWGYXnw1FAG04xMD97HnSxPTBMF0DzI= =ksWi -----END PGP SIGNATURE----- --T6xhMxlHU34Bk0ad--