delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/27/10:13:30

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; q=dns; s=default; b=D0RJO/jfq/wlzMeMAooK7qHejmNCt
rqOPcU44TbeimMvYDrIk86CgFq4wI9a4wLqFyLk/xUpjLYlHtHecX0EXU5lfA894
Jsp7X3+1vB5kYzmMUX/PXV4gemHVcB81LZn/750iMf0NMKJsbYYxojxzbtjC0SkC
U8atG1tLRmI7Mw=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; s=default; bh=DJESO03M1+foKnuL0XXIlMDQ8wY=; b=fqJ
Ed3y5SXeWJc1HR1kiHIgtZKD2acS4VB6jPLJWuvqkzZUu4uutjw1LzR2KOnslWeb
avGeF70z0L9mPqHE5bihwwAdP/clNq9qr2oJqITMfF3yKbjCfAg+oAc7gnJKJsaD
ASzHcAnfeJGBUDd2OSunhi2aTEPipA7JxIsknNzo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-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
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=
From: Ken Brown <kbrown AT cornell DOT edu>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: ssh-agent doesn't die
Date: Fri, 27 Sep 2019 14:12:34 +0000
Message-ID: <9f7a14bb-f81b-c566-bb84-8da7fc6d0fad@cornell.edu>
References: <319e26c0-32f0-40b7-2137-c7de170a3486 AT rl DOT ac DOT uk> <5b225738-c2d7-fbfe-48a7-8c2a38c3398c AT cornell DOT edu> <0ccd17b6-c22a-1a18-9409-1ebcfae60868 AT huarp DOT harvard DOT 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 AT cornell DOT 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
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: G9dHmy0TGksd7z0RBjneXe1Qdu2sZgwsuPBOr6OTjmztsA2QLtY0Ngvh48nXA/PyXcAON8Sgwkiz9ylS0G9EMw==
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x8REDC0c017074

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:
>>>
>>>         PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
>>>        1694    1693    1694       1576  ?          22534 00:01:10 
>>> /usr/bin/ssh-agent
>>>        1653       1    1653      11740  cons1      22534 00:00:37 /usr/bin/bash
>>>        1693    1653    1693       1552  cons1      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.  ssh-agent forks, and then the parent execs the command.
> 
> With the salient difference presumably being that the exec is done in the parent 
> instead of the child as usual?

Yes.  The idea is that 'ssh-agent command' should be more-or-less equivalent to 
running 'command', with ssh-agent running as a subprocess.

The ssh-agent subprocess periodically checks to see if its parent is still 
alive, and it exits when the parent has died.  Someone should figure out why 
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019