delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/14/14:42:20

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 14 Aug 2009 20:41:57 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: run-1.1.11-1
Message-ID: <20090814184157.GI32408@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4A84BF50 DOT 3040009 AT cwilson DOT fastmail DOT fm> <20090814063458 DOT GV13438 AT calimero DOT vinschen DOT de> <4A857186 DOT 9040201 AT cwilson DOT fastmail DOT fm> <20090814144442 DOT GF32408 AT calimero DOT vinschen DOT de> <20090814151921 DOT GA28983 AT ednor DOT casa DOT cgf DOT cx> <20090814152904 DOT GG32408 AT calimero DOT vinschen DOT de> <20090814154349 DOT GA10002 AT ednor DOT casa DOT cgf DOT cx> <20090814162049 DOT GH32408 AT calimero DOT vinschen DOT de> <4A859A59 DOT 1040308 AT cwilson DOT fastmail DOT fm> <4A85A9F3 DOT 9090108 AT cwilson DOT fastmail DOT fm>
MIME-Version: 1.0
In-Reply-To: <4A85A9F3.9090108@cwilson.fastmail.fm>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Aug 14 14:16, Charles Wilson wrote:
> Charles Wilson wrote:
> > Corinna Vinschen wrote:
> >> Actually, what I told above is nonsense anyway.  What I saw was the
> >> flickering cmd window from a urxvt-X startup without run.  With run it
> >> doesn't start at all for me on W7, unless I start it from an existing
> >> console window.  And in that case it doesn't matter if the
> >> CREATE_NO_WINDOW flag is given or not, it always takes 100% CPU.  So,
> >> scratch that, it's no solution at all.
> > 
> > Rats.  So much for a "good enough" workaround.
> 
> OK, the attached patch (on top of run-1.1.11) seems to correct the
> problem in my testing.
> 
> For testing, I:
>   1) used the W7 "workaround" code, even though I was using Vista.
>   2) This caused 100% CPU
>   3) then, adding the attached patch, I tried again (with the W7
> "workaround" code still enabled) and did NOT see 100% CPU.
> 
> So, I'm hopeful that this fixes the problem for real, on W7.  However,
> with one exception, the production version of 1.1.12 for <= WinXP will
> continue to use the "old" code.  That exception is:
> 
> for WinXP and above, I forcibly enabled the used "pipes" -- that is,
> explicitly creating new Windows Handles and setting them up as the
> child's stdio.  The reason for this is, even the "old" run code would
> hit 100% CPU in the following scenario, on WinXP:
> 
>    1) from a bash prompt in a cmd window
>    2) run urxvt-X.exe -display 127.0.0.1:0.0
> 
> gave 100% CPU, although launching urxvt-X from a shortcut using the same
> invocation did not do so.  With this small change, that problem is
> corrected, too.
> 
> Corinna, can you give this a try? (I'm happy to send you a compiled
> version of the modified run.exe if that helps).

I just built it myself, and this looks pretty good.  I can start xterm
and urxvt-X wjust fine without a flickering cmd window.

However, what does NOT work anymore is to start the X server.  I had
to start it manually for testing xterm/urxvt.

Given that the X server shortcut is just a `run /usr/bin/startxwin.bat',
is it possible that the new incarnation doesn't start cmd correctly?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019