delorie.com/archives/browse.cgi | search |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=uTwY35vrKprQLPEPnpimvn0BGhMCKAuJU2CdYLSG4PmMcEfog/TTS | |
+P+81ptyzGrlywFHX9qqHKRvtcxhtiK7ngo628TpchJrDVNY/v73ceGKhP5780tV | |
bwRGAw2VWnNpjEf837oC2S38BKEvkeNZaM+W28YjnjSMZQV4c0JRBY= | |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=1W+m/oJNkxJz5JP7inPHFghq+/0=; b=TZ5/KVcSq6JHvi+7tijZy9O+grYK | |
ClKFL88+gytCrMIjJ1zSS5B9PVcyCrV6e5U2qMvgKn3gDjLgp9cm689ZFeCL072q | |
iMptNGUg0U83GgeKlUj0etb2ceit0n+8f0Ot6CQFC9uJSszMGiZuYYD2GRseqKJJ | |
XkeCjruThQ72/sI= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=-102.7 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=screen, H*F:D*cygwin.com |
X-HELO: | mout.kundenserver.de |
Date: | Fri, 8 Mar 2019 15:11:18 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Logging-in using ssh elevates the user privilege. |
Message-ID: | <20190308141118.GM3785@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <20190307010000 DOT fc28b73739c2dd66e609982b AT nifty DOT ne DOT jp> <381052629 DOT 20190307141955 AT yandex DOT ru> <51233666 DOT 20190307182445 AT yandex DOT ru> <20190308230138 DOT b7f6b5ac90c9a14cde2647c1 AT nifty DOT ne DOT jp> |
MIME-Version: | 1.0 |
In-Reply-To: | <20190308230138.b7f6b5ac90c9a14cde2647c1@nifty.ne.jp> |
User-Agent: | Mutt/1.11.3 (2019-02-01) |
--/If7Wv41KAW8wPhq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 8 23:01, Takashi Yano wrote: > Hello, >=20 > Thank you for the information. >=20 > On Thu, 7 Mar 2019 18:24:45 +0300 Andrey Repin wrote: > > > GNU screen freeze without much of an effort under Cygwin. > > > Try detaching from running screen and then running screen -ls. > >=20 > > Past discussion > > http://sourceware.org/ml/cygwin/2017-05/msg00448.html > > mid:16810313565 DOT 20170527142723 AT yandex DOT ru >=20 > I looked into this problem of GNU screen and found the > cause is very different from that of the problem I had > reported. >=20 > The problem I had reported is due to the failure of > sending signal, which is caused by mismatch of tokens > between ssh session and mintty session. >=20 > On the other hand, the problem you mentioned is due > to the difference in the behaviour of socket API. >=20 > In Linux, connect() in the client returns befor the > server calls accept(). However, in cygwin, connect() > does not return until the server calls accept(). This is a result of the handshake to exchange credentials for getpeereid(). To workaround this issue, try building screen with a tweak. Server and as client should call setsockopt (sock, SOL_SOCKET, SO_PEERCRED, NULL, 0); before calling accept or connect. Corinna --=20 Corinna Vinschen Cygwin Maintainer --/If7Wv41KAW8wPhq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlyCeAUACgkQ9TYGna5E T6AUNhAAoFXRGVuVc7A9Cde4Cwd4DQzx7AWs+RlInzo8jRS/auQN2x99HdMrsOKq RsrdlmphhNBW0CsXE4NHJVpOjr1AdUzb2cWjTpxN3udLgBJQE9c6Xu4ek7MUHGve c6hbk4Ub8KO3fxHCnJUAZOLRfH9R2lpuJ5tvpzCSJ9MveQCLNd2BYYhHYbBdQf8O /PAdeX161mxCryGbvTd4oOavM0nWu9owanXk0ZElvCBWbJFa4skNXoSa4lqWWp2r hUit5OnlLHKAiln32N2LOqlAYvW1PVsNABWw3oFzFy1hm0uHtyZ4QjRJYfrYQv8g FgONmfNuzoJ6zuO59D8Kbt9eENbAN5rMsxCnOaxr39BQlaYnuo/UXOrxCLEzaMQD gJkWuqM7slCodwRVNZ/7yLS1OgdgiFnw2Yo3k1fxFJRhjD9HPVzCGtiwVeovQEze vTIvJybY0YKdL7JY/E0CGa+zq/eE13XaDS2jBJS7kYNzSCmOxlLNfjSwMG7H8LzK 2E+yvhUPQICabs8Jw4xS/rODIx34o4q7Ufimtp76h5eSSOio+Kv+EirwDP3pLyAG 4ZDZ2KtKRFZGmlUI6WCYChYoATV+zm+hoLwQt/vDm4mxaeGTQPI8sP9rq/xTkR4V qvRChMA0kPsJYVKpOHgMx3KWW8uuB7V5etRlL3JcWwtTJn5umBk= =u0f9 -----END PGP SIGNATURE----- --/If7Wv41KAW8wPhq--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |