This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ssh-agent doesn't die
- From: Ken Brown <kbrown at cornell dot edu>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 27 Sep 2019 02:50:07 +0000
- Subject: Re: ssh-agent doesn't die
- 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
- 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-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CAQrxLYi9d7oCP3eAq/0EBPDm2PfptlCy7IRgkfVaa4MfyjUBQHmTLvu4IYQDNdkxNI762zKJLL53x7blfAhg1w8wJ1QEN8BpxZlXtBJoYtu5uv3z0BXttsU+M5d3lkJSycDkMyJXl/Os7dXOy69hlGB18U5onKaRA9/GtdSOK+EOeXhcVRtomh0hWHcRIozRm87B+n1L0oX2irfT36LvDPmbUmnFQK4BqJATHE36UvoZyvAnLhzo4q6wcJf7DMVcEAyCUcqsGu3HwZmPT1bptJnc9ZhWXmHuqWrElGi5urR2lmWYRMSGlgsUrRT6doxFtLx66e2qbt0CaY/DCHEhA==
- References: <319e26c0-32f0-40b7-2137-c7de170a3486@rl.ac.uk>
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