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=TNtcLeH1hE+mPhmUBqer4Ijrw5kLD Si4Nt9GTDMB5xlMiKeU2KncrUoJ8NPKIrvScB+SFD8Kp99uUxAEo8hMitDsIJMJb e0JyWM0FZXTRfdjnuyndf0rGPdqhKU7B9SP8hhzxp0lcBw9Hb7T0AAOXgHFsynXp 1gc2Zz96wtGcnY= 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=D4bFV5KmddNXf+DLBqCrxLCLz3w=; b=vsF 6ffxkN5H08egQbnvQYeBRbZZTSfoQfPe9b7Q1EVrc2FBOTKXHQi4lP28e/zjZUkk WUFFY2z8186cJz9g9yZYTzIPPNpfcaNATL8bw1FQb3F6eo2244AtceZj0tDE5lts 5urpzRykbuxPfTJMb3Q4tKz9ncR/O4OrAZW78q8U= 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=briefly X-HELO: NAM05-DM3-obe.outbound.protection.outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oFfyxIppZpIwxQ00dt9IGOsJYhB5bcL2pAzplWb2q5v+2zo3QtNYEsLavhwWZuBWzOxfThMYPxjGdfrde6elY31utZfrgajGHgAKcms/2bOajUarACn3hdXukPv4DAMRwdOYiT4w0I8l5UwYFMJ3MJo3A+sfD4lfpeyj/GzTbkv9ZZ0H48XyPbW3+74wC9IpexoXHMmJere7jE9ueKKDo5mxLcCEliXmAyaJEXb8Ekdvr5oWW9EcNJdL/oXc46EQ9XcHdXHlAchP2CxSPYxzJOCE+xkZOC2HX8EKi1AF6gNOr9VW9MhFYXcak44D9LfPdypoIcsFaKGq8ZU2UopeOg== 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=LZOM+4m/nF0YhyUzygcYOZ+qfO8BnhI7sZkdl6UWSKM=; b=AK/sJ5m7JBJf4aTgoH35tVyWep/Vh6Civye04GvrzPPpVm3iyX14On8lQWpGAGtmH9C6cVyHnwr8oqiN/sYTIklIt2ZBtDTVezM9FjieNOF4Xa6zGTcUpfXwww5t1Czj8G4nEp8zAq/0rdD1z6PhhiFK4GjhdBQwKXJfEpuvLh6lsoKiZvc3wVKbHjcR+1io2uOPEEprUNrNkmWHLMJhS8hN68sBGiLWOtGbkIexellBhAvSG+xfYiSNTSxcDW5kNcBa6N2hslz2wI6X7EE2djiAylDyErPm5bJ4m3x2Ncdt3nAk/v5ucFPyDaV0S5/ZZD67CC7LzZdpvFYLPwADoQ== 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=LZOM+4m/nF0YhyUzygcYOZ+qfO8BnhI7sZkdl6UWSKM=; b=NGGwQ6Y32zfrg8nyg8Qa6h3eRgsudeVFbXdb02AAcI47ygTgrIeYhsjve3C01AJ9GwgvCmVpSZYc18Gw6I1HSB5Q8lSze11GTBOYdw3dykfgUzh3v8A7bi3fjPAkCy0k4ZI2+XYlfaREuy0T6o4Ln8IyJucFe3GEOO2xj8I4gH8= From: Ken Brown To: "cygwin AT cygwin DOT com" Subject: Re: ssh-agent doesn't die Date: Fri, 27 Sep 2019 15:09:13 +0000 Message-ID: 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> <9f7a14bb-f81b-c566-bb84-8da7fc6d0fad AT cornell DOT edu> In-Reply-To: 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:8882; 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: <1D8E19163C39FB40B7F90F98EA93F282 AT namprd04 DOT prod DOT outlook DOT com> MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Btwgh2DKoFLxCcB5L1RAoNv0aIz/g0ku2+4N6jhv7lZK67ZD5lrCUBA7kcYZFV2hYpuUk6Rs30WXlQLQrYkqcg== X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x8RF9ogj023218 On 9/27/2019 10:27 AM, Vanda Vodkamilkevich wrote: > Le ven. 27 sept. 2019 à 16:13, Ken Brown a é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. > > 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? Sorry, but I'm not an expert on ssh-agent. Everything I said above is based on doing an internet search and looking briefly at the ssh-agent source code. My only suggestion would be to attach gdb to the process when it starts running wild and see if you can figure out why it's inf-looping. If you don't know how to do this, someone who does know would have to be able to reproduce the problem. 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