From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward102o.mail.yandex.net (forward102o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::602]) by sourceware.org (Postfix) with ESMTPS id BC12D395C405 for ; Thu, 23 Apr 2020 21:05:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BC12D395C405 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=anrdaemon@yandex.ru Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 81FCE6680AE7; Fri, 24 Apr 2020 00:05:02 +0300 (MSK) Received: from myt5-95c1fb78270f.qloud-c.yandex.net (myt5-95c1fb78270f.qloud-c.yandex.net [2a02:6b8:c12:1725:0:640:95c1:fb78]) by mxback8o.mail.yandex.net (mxback/Yandex) with ESMTP id ZyURcGTWQT-52ZOABOW; Fri, 24 Apr 2020 00:05:02 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1587675902; bh=qgQldoy6g+R2A7qLnTqDXZWZoWL52d/mVGBVHakWiM0=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=ReLPSCIyc0Srl2txnYWbOsa96ea2b0wYpZjX5lk+N9RO+wMygjvev0jaKuw56DCBy Ts8cDV0q6TwNAhLMQyELQtYB5SbSdsyzAfMRSvAlKq++rP/141uvLCTVPVQ5wxpNqo zXQNormnQX09bN06V7D1mqARFpPhYZmrDuXIEnwk= Authentication-Results: mxback8o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by myt5-95c1fb78270f.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id eByTyU8LiP-51WO7C3T; Fri, 24 Apr 2020 00:05:01 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Thu, 23 Apr 2020 20:51:19 -0000 Date: Thu, 23 Apr 2020 23:51:19 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <150670600.20200423235119@yandex.ru> To: Chris Rodgers , cygwin@cygwin.com Subject: Re: ssh-pageant In-Reply-To: References: <5f24168f-61d7-848b-677d-bf0d5aea303a@cam.ac.uk> <373832437.20200423230202@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2020 21:05:08 -0000 Greetings, Chris Rodgers! > Thanks for the detailed reply. Interesting! >> It's not that simple. You can't blindly restart agent every time you wish >> without notifying other programs, `--reuse` is a very bad idea and there's >> no easy way to set/change an environment variable globally for an entire >> user session. > May I ask, why do you say "--reuse" is a very bad idea? I'd be > interested to know in general, not just when considering this change. With --reuse you're using predictable name, and not checking its permissions. You can never know if that socket was actually created by you or left there by accident. If you noticed, I trash both socket and agent configuration before activating the agent anew. That gives me a little more control on what's going on in the system. -- With best regards, Andrey Repin Thursday, April 23, 2020 23:46:25 Sorry for my terrible english...