X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_27,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4A82F82C.6000907@cwilson.fastmail.fm> Date: Wed, 12 Aug 2009 13:13:16 -0400 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] Updated: run-1.1.11-1 References: <200908101812 DOT n7AICVXY019082 AT gridley DOT byu DOT edu> <4A8239BC DOT 8080401 AT byu DOT net> <20090812134355 DOT GB13438 AT calimero DOT vinschen DOT de> In-Reply-To: <20090812134355.GB13438@calimero.vinschen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Corinna Vinschen wrote: > I can confirm this. It only happens with urxvt-X for some reason. > I don't see this for xterm, or xeyes, or xclock. Me too. urxvt-X (and urxvtd-X) have their own hide-the-console code, taken from inetd, as originally written by Corinna. The core function is hide_console(), below. (internally it uses getConsoleHandle(), a local function that uses a number of different approaches depending on the OS). void hide_console () { HWND console = NULL; HANDLE hConsole; CONSOLE_SCREEN_BUFFER_INFO buffInfo; SECURITY_ATTRIBUTES sa; sa.nLength = sizeof(sa); sa.bInheritHandle = TRUE; sa.lpSecurityDescriptor = NULL; hConsole = CreateFile( "CONOUT$", GENERIC_WRITE | GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, &sa, OPEN_EXISTING, 0, 0 ); if (GetConsoleScreenBufferInfo(hConsole,&buffInfo) && buffInfo.dwCursorPosition.X==0 && buffInfo.dwCursorPosition.Y==0) { console = getConsoleHandle(); if (console) ShowWindow (console, SW_HIDE); } } I think the *old* run's mechanism did not interfere with this, but the new run's mechanism does. I need another piece of information before deciding how to address this issue. If someone can test urxvt-X *without* using run, on Windows 7 for me, and report back, that'd be great. You need to create a shortcut whose target is C:\cygwin\bin\urxvt-X.exe -display 127.0.0.1:0.0 -ls -e /bin/bash --login and launch that. What I expect, is that there will be a quick flash console window that disappears, and then the urxvt-X window shows up. And no 100% CPU usage. Thanks... -- Chuck -- 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