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=S7pX/xBcqDhQq26QA1J7ZLbXuSahP zcwe1D/pH/gQQJaCluRXmEg9Ba1Sk+VgvLwSViAMJ7naeiKGSIDR2ukl+bmFSZtZ NqTzLr/dxhUelICGQKBX4k2Qm3UL/TmA7IZcO3PwMVyz7JTkNRdlW9ct891ZgOzZ vcm0o2pty9WyGw= 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=zI2fdtr+9jGiB6qfbuvr9vlPbZE=; b=cnF /0lzj23O1yjCdr/8GRhnmETH8qQdPCVgLA8Rzmgk7QFuAIOqb18nG75Cat3cGZ5j i8yCCfNiPWXiuiZMHXqNBb+6bFdVDEQ5Saj37l4JaoUH10TkF/uR3N5Qo5yiKjN9 FvG94zV2QnU4x4n/fmyr85pufxTouZBvlLT22W+0= 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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=H*M:48a7 X-HELO: NAM02-CY1-obe.outbound.protection.outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CAQrxLYi9d7oCP3eAq/0EBPDm2PfptlCy7IRgkfVaa4MfyjUBQHmTLvu4IYQDNdkxNI762zKJLL53x7blfAhg1w8wJ1QEN8BpxZlXtBJoYtu5uv3z0BXttsU+M5d3lkJSycDkMyJXl/Os7dXOy69hlGB18U5onKaRA9/GtdSOK+EOeXhcVRtomh0hWHcRIozRm87B+n1L0oX2irfT36LvDPmbUmnFQK4BqJATHE36UvoZyvAnLhzo4q6wcJf7DMVcEAyCUcqsGu3HwZmPT1bptJnc9ZhWXmHuqWrElGi5urR2lmWYRMSGlgsUrRT6doxFtLx66e2qbt0CaY/DCHEhA== 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=8yclUFpF+uVYENAGeDIOiQuYARjNeTQSpvaRfv0g1zo=; b=WTa85f7k2OJxrYK7bSfVcnKZCSWBZC+X76zDXjvmZo7+3nlRY4WF3TZGWP3FwvvmhmE91oiLuACN9YsLlsVxe0HY09669cQR+QeAgxbvcuYXQjo0JwRQXQOFPBAZ+6TMdpyBQEXnk0iqgBYcBDl9JLje25fXWfJA1OZTaQ+r8sZA9bhRimSjRoJ6dXhdHkyrlUB6unZcICgajPrIEcR6uLnkAATLMyki0mT0GjHadaH3CL9mChVZTpT0wi8yDxa74DxKPPUxbiQnW5oRtrTyr3Y1XRlgr17Txac+AaSdv0Ha4kV2ZkaV5XLZWG7NlPWksaeSnIXZrZTGMkFAsax21A== 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=8yclUFpF+uVYENAGeDIOiQuYARjNeTQSpvaRfv0g1zo=; b=glzsS4s7bCssVuSDIyhybWJL7PGrnF3fiKR/L8YBEQ/wJ0x6epVFshRdl98V2XzMf9Q2cP9qPlxINSn/QpSqlHX0ACmlXwuFDzd8/q/oUZABD+e7uHh+xcpXFgBo8cFU3JSmuq9tXQtJfCkKAAu8VSgNzvvovnf96AmdUf/dQGA= From: Ken Brown To: "cygwin AT cygwin DOT com" Subject: Re: ssh-agent doesn't die Date: Fri, 27 Sep 2019 02:50:07 +0000 Message-ID: <5b225738-c2d7-fbfe-48a7-8c2a38c3398c@cornell.edu> References: <319e26c0-32f0-40b7-2137-c7de170a3486 AT rl DOT ac DOT uk> In-Reply-To: <319e26c0-32f0-40b7-2137-c7de170a3486@rl.ac.uk> 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:6108; 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: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: D/1YSjhbKCWeP3p1EL3CdtqicejGet22EGxwUkoLWurQLEvcVdTPfG1zMdxYqapKD9oo2sWKrJHbWKY4zQq/JA== X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x8R2oiTM012951 On 9/26/2019 7:42 PM, Tim Adye wrote: > Hi, > > I have noticed a (new?) problem with using ssh-agent to start a session, eg. with > >   ssh-agent xterm & > > 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. This does seem like a bug... > 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. 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