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 14:12:34 +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=OFntZ2EFBtM6gxBHMb/VKQql2/Qp2GE2oUFFoyGYksM=; b=i/Rnftgx1MUDE6LhVwyfKg4EDB4G2vfVUMbNoc2h5XMam6eb+7e/vUOWYAc4CS9XFLguW5OAc7TXIyXJNRWxZ0m2H8mFNtVDiHMwKPhLoH62O7niV2egUQYUNY37+ep24+njz0pG2nG4Ba86xa60Yx7ooJHgaU+cI5Tz8JMwci8Zz7Uv/YIhC+BaBNfnIO3dFhC6/IWfR685JyPkkydlM9eKzFhrir2CxiYA3fxbunS1pd7zoAjfw6KDfzcKmQjndhGWy/4y1ZSN9moffEAxIjngGZ+ZnfQbg9taF7HGDHDa4U3me7nWGb3LqrmULCNjO55LEut4nsDjdR9MO/b7Pg==
- 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==
- References: <319e26c0-32f0-40b7-2137-c7de170a3486@rl.ac.uk> <5b225738-c2d7-fbfe-48a7-8c2a38c3398c@cornell.edu> <0ccd17b6-c22a-1a18-9409-1ebcfae60868@huarp.harvard.edu>
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