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=QJ4KHjX+E/TCUGbmfKhRYT21M7LdSBdKqYS+jb7WxbcoJxe5Ts8ZG KM6J+UcR2Wwnm41sZ7sXK0rEIwTb1cj0l2tN7zHHheRl6tKAv2J1v8KMLnvJHzhV aqyvXmCnlFKbaMiNtZK4ogWTpWuqcPn2/y+vEWMQ5CvZZLJ9eJB05E= 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=pDUilU8X/k4RMK8eeCQvbUfJ2oM=; b=ijQ0Xbm6EX6Zk0muXw97ekbCgLyj VEEfWIxzgyUu4CVR4C4LaiHR7QXfAIWORGBFK74sy7oAU3bSLSRpEV4MgvwTnjXj YqimF7+RnZp8hsnbhNV51C0P/M66pJgzeNuUmOsEXrrwH74mOFCAV35TdYlvbyOZ zPsauAHm663xYeA= 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=-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 Date: Mon, 4 Nov 2019 15:17:18 +0100 From: Corinna Vinschen To: Tim Adye Cc: cygwin AT cygwin DOT com Subject: Re: ssh-agent doesn't die Message-ID: <20191104141718.GM3372@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> <20191103190052 DOT GI3372 AT calimero DOT vinschen DOT de> <38e07653-1a09-c398-d2ab-557965046b93 AT rl DOT ac DOT 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) --DwoPkXS38qd3dnhB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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" -----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--