From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86222 invoked by alias); 4 Nov 2019 14:17:29 -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 86214 invoked by uid 89); 4 Nov 2019 14:17:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-104.8 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1910, H*F:D*cygwin.com X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (217.72.192.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 04 Nov 2019 14:17:27 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N5mOb-1hrDfA11zv-017DZK; Mon, 04 Nov 2019 15:17:19 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 62FB9A80A60; Mon, 4 Nov 2019 15:17:18 +0100 (CET) Date: Mon, 04 Nov 2019 14:17:00 -0000 From: Corinna Vinschen To: Tim Adye Cc: cygwin@cygwin.com Subject: Re: ssh-agent doesn't die Message-ID: <20191104141718.GM3372@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> <20191103190052.GI3372@calimero.vinschen.de> <38e07653-1a09-c398-d2ab-557965046b93@rl.ac.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="DwoPkXS38qd3dnhB" Content-Disposition: inline In-Reply-To: <38e07653-1a09-c398-d2ab-557965046b93@rl.ac.uk> User-Agent: Mutt/1.12.1 (2019-06-15) X-SW-Source: 2019-11/txt/msg00009.txt.bz2 --DwoPkXS38qd3dnhB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2730 On Nov 4 11:49, Tim Adye wrote: > On 03/11/2019 19:00, Corinna Vinschen wrote: > > On Sep 27 00:42, Tim Adye wrote: > > > Hi, > > >=20 > > > I have noticed a (new?) problem with using ssh-agent to start a sessi= on, 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 subproc= ess 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 1694=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 1693=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 1694=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/ >=20 > Hi Corinna, >=20 > That fixes the problem! With cygwin1-20191103.dll.xz installed as > /usr/bin/cygwin1.dll, all my ssh-agent processes exit properly. >=20 > > Thanks, > > Corinna >=20 > Thanks for the excellent fix, > Tim. Thanks for testing, Corinna --=20 Corinna Vinschen Cygwin Maintainer --DwoPkXS38qd3dnhB Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl3AMu4ACgkQ9TYGna5E T6DtuQ//as1V7SvfUdWQdyBW0u7c2Pv9j5jS01th1iXFtmU4/YIJTnxWjpA7T3EI yAGRzcgbyirAl1iC+LhTojEJvoJ/Gzae4q6VPZAe5mWefOHEWfMGjU8FGf8bI/n9 fEbOFsdsMtkkmHmA42qUIBvQ3pVx6grnpqrD8+nDPtIjoQX4prqzLWD0229RYDKG DMkw2Z3xH9GvCxjtXN00MRrlsgckOYxl/fPSQIXtuXp4E6S+5ZJEFK4cFvMzua1m Scfw5A0XIjcyFg5OhWGbT8ra/jgNdu87V2EJQoKbMNOscmCTFKfIVtjn6y84yHyF RDUG0hn1rsgagfpv7+3K+KPxv33XqJVfxJ/rYvLBFlnctsAl5gKbT9s+fl4HxrkM jWa4Lsy/TfRUQOdeQ1Y03rLIxsC0PxGLvHHs1q3cztNW7PfS/vFzzOgXYoGDBRLc 9NIi2EsTduGU7jhZ3luhi/9Em824uQtqYq5M7eLAox2hUytcbpP/THDTBpRQwWPn My2iA7qp6Zb6XOL7zfnzvprMKlSmsUCrO82lXqYId/FTYQWYza7Kq1a7bAmcmfnX jEz2zkSzTU+9RCVxvgOBheTUZ7v8wNYJdCdIuMvaLmu3ROhkSM3blFLzC3/Uqsv9 z3KxByZqqWgshz2IVJkltWKcdbGDnYMl5zl6NuzWgDTxaTynChw= =RHa3 -----END PGP SIGNATURE----- --DwoPkXS38qd3dnhB--