www.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=H0m5s0PuEwxjaNNIIFUaXeOKfX/4ffIzdEAsS2cUDIUSzHDRAonCl | |
nfiOz2PkKWMc3VnU5c546PYXYdL6XIhIyWZoMa03mnelxgiewMly4j2Y6nGWxUpD | |
yVfXEfR1N3JmMlY64Uhr1OnXtd/3NmoSZLcgqD42rZpAKDkaVN+Dms= | |
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=mYn/9e4PqAZG6O94/qwAwyKpYGw=; b=iUXA7oqVm1GhQUvmDNsLbXntJvqB | |
YkOMKBH78VHTVPTYZAzCKlpHpLp/xUGwYLMmKbaajWsW8OfNcTb/Z6a/ac51Bq3G | |
sXYm3CHFdM9yRGzZ5Q6V0500hRV5kk3no8KBcHzoKWJRkDEsLFBIXoJQJAO9OGxc | |
DZMf0Hd9LrsTEAw= | |
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-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Mon, 8 Jun 2015 17:43:34 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: More details about the tmux 2.0 regression |
Message-ID: | <20150608154334.GA13266@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <CAJ1KOAidxNn99KCUNHCbGCvOc=51vz8uzo5zag_0FEYj-yyFPQ AT mail DOT gmail DOT com> <20150608124159 DOT GE3005 AT calimero DOT vinschen DOT de> <20150608132103 DOT GJ3005 AT calimero DOT vinschen DOT de> <CAJ1KOAiz8rV33jmCuLHj9pkLBD+3w3N+7+eEQ6cZwScAkcsNyg AT mail DOT gmail DOT com> <CAJ1KOAh5Sqy2Zhag=zddULcZFTa759uyr4uXY_7QGhv85w_2Og AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <CAJ1KOAh5Sqy2Zhag=zddULcZFTa759uyr4uXY_7QGhv85w_2Og@mail.gmail.com> |
User-Agent: | Mutt/1.5.23 (2014-03-12) |
--6TrnltStXW4iwmi0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jun 8 18:25, =C4=B0smail D=C3=B6nmez wrote: > On Mon, Jun 8, 2015 at 6:12 PM, =C4=B0smail D=C3=B6nmez <ismail AT donmez DOT ws= > wrote: > > On Mon, Jun 8, 2015 at 4:21 PM, Corinna Vinschen > > <corinna-cygwin AT cygwin DOT com> wrote: > >> On Jun 8 14:41, Corinna Vinschen wrote: > >>> On Jun 6 12:58, =C4=B0smail D=C3=B6nmez wrote: > >>> > Hi, > >>> > > >>> > I had a nice discussion with tmux maintainers over at > >>> > https://github.com/tmux/tmux/issues/13 about the tmux 2.0 regression > >>> > on Cygwin. > >>> > > >>> > Long story short, tmux is trying to read /proc/<pid>/cmdline and > >>> > /proc/<pid>/cwd for various reasons and for non-Cygwin programs this > >>> > is quite slow. You can reproduce this easily run cmd.exe inside bash > >>> > and try to > >>> > > >>> > cat /proc/<pid of cmd.exe>/cmdline > >>> > >>> Good catch! > >>> > >>> The problem here was that this functionality is very Cygwin centric. = It > >>> tries to call into the process itself to fetch the information. > >>> > >>> E.g, assuming you have some /proc/1234, it tries to fetch the informa= tion > >>> by sending a request to process 1234 and then waits for that process > >>> setting a semaphore. A non-Cygwin process will obviously fail to do = so, > >>> not knowing about the method at all. > >>> > >>> I fixed that in the Cygwin git repo and it seems to work much better = now > >>> to run native tools inside tmux with this change. > >>> > >>> I'll upload a developer snapshot on https://cygwin.com/snapshots/ lat= er > >>> today. > >> > >> Snapshot is up. > > > > That resolves the problem for me, cheers! Thanks for testing. > One question though, would it be possible to return executable name > instead of <defunct> for non-Cygwin processes? That should work, it just needs implementing. However, I'm just mulling over another idea. It's probably even possible to return the comand line and cwd, as long as the calling process (cat) has permission to open a handle to the requested process. I'll toy around with this a bit... Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVdbgmAAoJEPU2Bp2uRE+gyzIP/A8hDNArnMrLSRMEZoV7bp9c ptXguy9AoV6UcZ3XqGRPV+LjmdzdJ1R4ugSHImUn6Q/wykEc0LocoL5WmQh3QzvZ Sglit9YWgxk/F6JIUWnVBS1ayEdsEBrtUhjabFg7X8Nryn9VE03aJ6W3tGe0hU+e tlenotfqWe73qTaDwvwec1XaNEz+O5nCNRQlkIUzKvtcXdO3Ok750Do8EHBJMcAv 151TFxtHMTSP1PQEw/X7xNcKXvz1n+/tc+NrR3tMaw77r4XwSBRFfEbheFS6CWtK cl86vTeJmD03reN6+iPnxtfzDpjBAHFM0wYB0KHckGr8CfNDGbqzyghD5HR/9qmn 8h82UDSRRvNL3JOs4SturB5jNf4OG6wF6NgtzYfiJAILSbY6W+jgmx95ofsep40o sUO001WQR43x7gjl+/0PDsg6r5RCtlQozJ/I7kqMz+VslJDp9MR70tbsupyaPqhH HzmmMJLgcjIxSCl41uSzdgIMoEHRZtPAvfzurMWN0iCPQu2HZYnLoz3dMxMIUtf7 QmSXoILuulpEyLCjFKre92gs9jg0ykzs18RP/RumOH7aNXfIpCGyG504C6xNAeEk C5vXjeGzLO7bU2FAIPc0/X7+x9z8MwluGb781PIPJvu+qO83w7sGujhy8fRWxMq0 iOD/3gOV6h5KLdSj4c/3 =VjbC -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |