From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39317 invoked by alias); 27 Sep 2019 14:12:38 -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 39307 invoked by uid 89); 27 Sep 2019 14:12:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=norton, allen, Allen, Norton X-HELO: NAM04-CO1-obe.outbound.protection.outlook.com Received: from mail-eopbgr690129.outbound.protection.outlook.com (HELO NAM04-CO1-obe.outbound.protection.outlook.com) (40.107.69.129) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Sep 2019 14:12:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JbANJ1ZFajJHoYcHA+L3/hN6DxXgAvAu4h/enMRuDy+YYrYOeJJ8KXHr7RhIQvW/C7OAdEEB1vkE9j0kDH91ZQvKWePhIRwIEVqtJGZr9jqFMDhW51btgRKBAnZZH8hwTT0l6P9pPFXScqWz/pgZWLIu2bSuDWoRTNMo7GVf93VB5VOVBKF1LhCsLO076oclmbIAT4stqaW4+XZo6ccYJ8/4/xDmDp3ql2SZWAX/3AqiH827X1O0vaWpjWkalF62Sy2q+YETKFP5Ixfra6Y6KwYi2+CxhAZ4j0oEmeKVr657vn2jhMy7yp/uDSMAqTLT8UaINZYlKIFslpgWirkBVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OFntZ2EFBtM6gxBHMb/VKQql2/Qp2GE2oUFFoyGYksM=; b=i/Rnftgx1MUDE6LhVwyfKg4EDB4G2vfVUMbNoc2h5XMam6eb+7e/vUOWYAc4CS9XFLguW5OAc7TXIyXJNRWxZ0m2H8mFNtVDiHMwKPhLoH62O7niV2egUQYUNY37+ep24+njz0pG2nG4Ba86xa60Yx7ooJHgaU+cI5Tz8JMwci8Zz7Uv/YIhC+BaBNfnIO3dFhC6/IWfR685JyPkkydlM9eKzFhrir2CxiYA3fxbunS1pd7zoAjfw6KDfzcKmQjndhGWy/4y1ZSN9moffEAxIjngGZ+ZnfQbg9taF7HGDHDa4U3me7nWGb3LqrmULCNjO55LEut4nsDjdR9MO/b7Pg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OFntZ2EFBtM6gxBHMb/VKQql2/Qp2GE2oUFFoyGYksM=; b=AIod2G3ZMyQTGHiAVFtuxpahtfKHc528cMMnyGWOMwa7eUgf1ds5p/R5MxcWGjX2vsQj9WZhbGbRZmsmavs+Cc3mvhvBUH5ZM88drqJT14FKKUKb575VdwojVV/FDI0/aAp61XPDyg8s1sCYwJ2Z8a8FHYkqB1hSRvlUmtQUWKU= Received: from DM6PR04MB5738.namprd04.prod.outlook.com (20.179.51.81) by DM6PR04MB4219.namprd04.prod.outlook.com (20.176.78.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.26; Fri, 27 Sep 2019 14:12:34 +0000 Received: from DM6PR04MB5738.namprd04.prod.outlook.com ([fe80::998b:a76c:fc2b:1473]) by DM6PR04MB5738.namprd04.prod.outlook.com ([fe80::998b:a76c:fc2b:1473%4]) with mapi id 15.20.2284.028; Fri, 27 Sep 2019 14:12:34 +0000 From: Ken Brown To: "cygwin@cygwin.com" Subject: Re: ssh-agent doesn't die Date: Fri, 27 Sep 2019 14:27:00 -0000 Message-ID: <9f7a14bb-f81b-c566-bb84-8da7fc6d0fad@cornell.edu> References: <319e26c0-32f0-40b7-2137-c7de170a3486@rl.ac.uk> <5b225738-c2d7-fbfe-48a7-8c2a38c3398c@cornell.edu> <0ccd17b6-c22a-1a18-9409-1ebcfae60868@huarp.harvard.edu> In-Reply-To: <0ccd17b6-c22a-1a18-9409-1ebcfae60868@huarp.harvard.edu> user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown@cornell.edu; x-ms-oob-tlc-oobclassifiers: OLM:3173; received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: G9dHmy0TGksd7z0RBjneXe1Qdu2sZgwsuPBOr6OTjmztsA2QLtY0Ngvh48nXA/PyXcAON8Sgwkiz9ylS0G9EMw== X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00273.txt.bz2 On 9/27/2019 9:37 AM, Norton Allen wrote: > On 9/26/2019 10:50 PM, Ken Brown wrote: >> >>> As a simple test example, consider: >>> >>> /bin/ssh-agent /bin/sleep 10 >>> >>> While the sleep is still running, ps shows: >>> >>> =A0 =A0=A0=A0=A0=A0 PID=A0=A0=A0 PPID=A0=A0=A0 PGID=A0=A0=A0=A0 WINPID= =A0=A0 TTY=A0=A0=A0=A0=A0=A0=A0=A0 UID=A0=A0=A0 STIME COMMAND >>> =A0 =A0=A0=A0=A0 1694=A0=A0=A0 1693=A0=A0=A0 1694=A0=A0=A0=A0=A0=A0 157= 6=A0 ?=A0=A0=A0=A0=A0=A0=A0=A0=A0 22534 00:01:10=20 >>> /usr/bin/ssh-agent >>> =A0 =A0=A0=A0=A0 1653=A0=A0=A0=A0=A0=A0 1=A0=A0=A0 1653=A0=A0=A0=A0=A0 = 11740=A0 cons1=A0=A0=A0=A0=A0 22534 00:00:37 /usr/bin/bash >>> =A0 =A0=A0=A0=A0 1693=A0=A0=A0 1653=A0=A0=A0 1693=A0=A0=A0=A0=A0=A0 155= 2=A0 cons1=A0=A0=A0=A0=A0 22534 00:01:10 /usr/bin/sleep >>> >>> One oddity is that ssh-agent is listed as a subprocess of sleep >> ...but this isn't a bug.=A0 ssh-agent forks, and then the parent execs t= he command. >=20 > With the salient difference presumably being that the exec is done in the= parent=20 > instead of the child as usual? Yes. The idea is that 'ssh-agent command' should be more-or-less equivalen= t to=20 running 'command', with ssh-agent running as a subprocess. The ssh-agent subprocess periodically checks to see if its parent is still= =20 alive, and it exits when the parent has died. Someone should figure out wh= y=20 this is not working on Cygwin. Ken Ken -- 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