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:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=oI1VwggGUbpGXSrabC1BaJKYvkjQJByALeVKEbEqwB4+FYQRI2sn8 3Hfm45lqMElfAU1ITDTs4/jImULVO3LGqfIEQAkTjGlMy5gCI8rzRVxjw78sR5M0 pSYM3xzRFdd0aj/tfoFyMXozp4TxlegAaU/QbSJbY2YXikqyah4U3Y= 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:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=k1YUSPeASpcp73N7Ur/BpLKYb7w=; b=uFkvgA1TMU+dpf1bKix1UQM0cWVi dNLyiyQKiVs5GhGLpV4Hsz4GhD2cK3jCJrTjyA80bEkhM0IMSPHuTOVNacTgHnHC GXIZL0StGoF9MKw5fFMGMzznl09tL/RgtsLrhGS2EbSL9I7H8LQ1vYo4uAxsYel9 7JQ3B/qmxf0vfSE= 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=-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 Date: Sun, 3 Nov 2019 20:00:52 +0100 From: Corinna Vinschen To: Tim Adye Cc: cygwin AT cygwin DOT com Subject: Re: ssh-agent doesn't die Message-ID: <20191103190052.GI3372@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: Tim Adye , cygwin AT cygwin DOT com References: <319e26c0-32f0-40b7-2137-c7de170a3486 AT rl DOT ac DOT 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) --T6xhMxlHU34Bk0ad Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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" -----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--