From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8481 invoked by alias); 27 Sep 2019 14:27:57 -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 8464 invoked by uid 89); 27 Sep 2019 14:27:57 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=2.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=laptop, disconnected, ven, H*c:alternative X-HELO: mail-qk1-f181.google.com Received: from mail-qk1-f181.google.com (HELO mail-qk1-f181.google.com) (209.85.222.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Sep 2019 14:27:55 +0000 Received: by mail-qk1-f181.google.com with SMTP id u184so2117768qkd.4 for ; Fri, 27 Sep 2019 07:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=g/vtSGjMXKLO+qCcFNcpVAot6q6DPowal/5SOJdhyIc=; b=q/o2TTgE/37VWTnz5cdXC4Yir2V4qLR2ANxxGh0DT1mjphMwGdQSRd3NzfOculTBW7 Pyjqq5H2AgGziWFOjtLAZjSNhQs1TvC0WaBJQ28Gr9hjTjbgTWTPzkG05ejONp3yTt+a RTZtUtKD4vzt02fyNmm1PAwcn5gSNTtLg7BttaolKt81jd9qXyzdAjjTpbYNQEtVj+Rl A9sBW2xwe27WUfO0hU+Gw0ByKiaGwk0PfeJgzkkjcaIQJPi16tabZ4Y2EK+1AQ1gpdDO Op4cQWmdEdAbzuFsb7F71r9ujVWFa2r/OD4uPdd3SHuQAe1q1xZcES5n20gxnPngMrVw QWww== MIME-Version: 1.0 References: <319e26c0-32f0-40b7-2137-c7de170a3486@rl.ac.uk> <5b225738-c2d7-fbfe-48a7-8c2a38c3398c@cornell.edu> <0ccd17b6-c22a-1a18-9409-1ebcfae60868@huarp.harvard.edu> <9f7a14bb-f81b-c566-bb84-8da7fc6d0fad@cornell.edu> In-Reply-To: <9f7a14bb-f81b-c566-bb84-8da7fc6d0fad@cornell.edu> From: Vanda Vodkamilkevich Date: Fri, 27 Sep 2019 15:09:00 -0000 Message-ID: Subject: Re: ssh-agent doesn't die To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00274.txt.bz2 Le ven. 27 sept. 2019 =C3=A0 16:13, Ken Brown a =C3=A9= crit : > 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 Hi, this may probably be not fully related but I see from time to time a strange behavior of ssh-agent (running in the background and initially started by keychain launched in .bashrc) : the agent is running wild (25% of cpu and never responding). It seems to occur (not systematically) when network is disconnected and reconnected (this is on a laptop often removed from the docking system). Do you have any idea how to diagnose the issue more precisely? Regards -- 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