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

