From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126706 invoked by alias); 23 Aug 2019 03:19:47 -0000 Mailing-List: contact cygwin-developers-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com Received: (qmail 126693 invoked by uid 89); 23 Aug 2019 03:19:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1726 X-HELO: m0.truegem.net Received: from m0.truegem.net (HELO m0.truegem.net) (69.55.228.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 23 Aug 2019 03:19:45 +0000 Received: from localhost (mark@localhost) by m0.truegem.net (8.12.11/8.12.11) with ESMTP id x7N3Jho5057422; Thu, 22 Aug 2019 20:19:43 -0700 (PDT) (envelope-from mark@maxrnd.com) Date: Fri, 23 Aug 2019 03:19:00 -0000 From: Mark Geisert To: Takashi Yano cc: cygwin-developers@cygwin.com Subject: Re: [PATCH v7 1/1] Cygwin: pty: add pseudo console support. In-Reply-To: <20190822004135.ab3a5ccefbeb7c48b1a1b7ed@nifty.ne.jp> Message-ID: References: <20190815160908.259-1-takashi.yano@nifty.ne.jp> <20190815160908.259-2-takashi.yano@nifty.ne.jp> <20190817083626.GA11632@calimero.vinschen.de> <20190819153641.582dd2314a53eac70099ae5e@nifty.ne. <20190822004135.ab3a5ccefbeb7c48b1a1b7ed@nifty.ne.jp> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00023.txt.bz2 On Thu, 22 Aug 2019, Takashi Yano wrote: > Hi Corinna, Mark and Thomas, > > I worked on the following problem and implemented a solution. > It is not smart enough, however, it works anyway. This is > realized by hooking the WIN32 API calls which access console, > and switching I/O to pseudo console side if console access is > detected. > > I will post it as v8 patch. I'm very happy if you will test. Hi Takashi, I've successfully built a Cygwin DLL with your patch but am not able to test it appropriately because I'm not running Windows 10 on any machine yet (blush!). I was also unsure how Corinna ran her STC.. whether it was under bash+mintty or some other combination. We may have to wait for somebody else to verify the fix for you. Sorry for the unhelpful news, ..mark > On Mon, 19 Aug 2019 15:36:41 +0900 > Takashi Yano wrote: >> Hi Corinna, Mark and Thomas, >> >> On Sat, 17 Aug 2019 11:10:53 -0700 (PDT) >> Mark Geisert wrote: >>> On Sat, 17 Aug 2019, Corinna Vinschen wrote: >>>> On Aug 16 01:09, Takashi Yano wrote: >>>> It looks like there's some timing problem in terms of stderr output. I >>>> just made up the example for the Cygwin ML discussion about the mcmodel. >>>> When I start the code built with -mcmodel=small I expected the output: >>>> >>>> Cygwin runtime failure: /home/corinna/dll/main.exe: Invalid relocation. >>>> Offset 0xfffffffd80348989 at address 0x40000103b doesn't fit into 32 bits >>> >>> That particular error message doesn't go out on Cygwin's stderr. It's >>> done by a Windows WriteFile() on STD_ERROR_HANDLE followed by a >>> FlushFileBuffers() on same. >>> >>> Not sure that it matters, but perhaps it does. [...]