X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20090626121215.GJ30864@calimero.vinschen.de> References: <416096c60904151415k6998673dw2ddf867653ae88e8 AT mail DOT gmail DOT com> <416096c60904210835jd93a1b8w742bb8ebe0802c9c AT mail DOT gmail DOT com> <20090421160026 DOT GJ8722 AT calimero DOT vinschen DOT de> <20090508090737 DOT GA15230 AT calimero DOT vinschen DOT de> <416096c60905131134l21aa53dqe7c3f99130dddb4e AT mail DOT gmail DOT com> <20090626083640 DOT GF30864 AT calimero DOT vinschen DOT de> <416096c60906260239r5bdaf60bw6a9febe885726f55 AT mail DOT gmail DOT com> <20090626102313 DOT GA12963 AT calimero DOT vinschen DOT de> <416096c60906260503o52ae73ben1140bbbd2db993bb AT mail DOT gmail DOT com> <20090626121215 DOT GJ30864 AT calimero DOT vinschen DOT de> Date: Fri, 26 Jun 2009 13:41:09 +0100 Message-ID: <416096c60906260541t56687113p9c940d4251f68405@mail.gmail.com> Subject: Re: popup consoles on Windows 7 From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 2009/6/26 Corinna Vinschen: >> Forgot to say: the occurances of this could at least be reduced by >> trying AttachConsole to get a hold on the parent process' console, if >> any. When I attempted that in MinTTY, though, I couldn't make it work. > > Yes, I thought of trying AttachConsole first. =C2=A0It's a band-aid since > it will of course not work if there's just no parent console That can be dealt with, because AttachConsole reports back whether it did manage to attach, so if it doesn't, one can then call AllocConsole and ShowWindowAsync. But on 64-bit Windows 7 there were some bizarre problems, where it just wouldn't attach or it would completely block the parent's console. See http://code.google.com/p/mintty/issues/detail?id=3D83 >> Did you previously mention that MS fixed bug in this area? > > Sorry, I don't understand the question. =C2=A0I don't think I ever mentio= ned > anything related to a MS bugfix in terms of AttachConsole. Ah, seems I jumped to conclusions from this, although it does sound like it might address the problems above: 2009/5/16 Corinna Vinschen: "That's not a workaround for the problem with consoles popping up, but a workaround for a W7 x64 specific problem. There's a bug in the W7 x64 console code (which appears to be mostly rewritten in W7 anyway) which breaks DLL initialization in child processes which have no copy of the original console handles from console startup anymore. This bug has been reported upstream and is marked as being resolved, which hopefully means it will be fixed in the final W7 release." Andy -- 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