From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 49285 invoked by alias); 17 Aug 2019 18:10:59 -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 49271 invoked by uid 89); 17 Aug 2019 18:10:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2 autolearn=ham version=3.3.1 spammy=HTo:U*cygwin-developers, screen 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; Sat, 17 Aug 2019 18:10:56 +0000 Received: from localhost (mark@localhost) by m0.truegem.net (8.12.11/8.12.11) with ESMTP id x7HIArLf089122; Sat, 17 Aug 2019 11:10:54 -0700 (PDT) (envelope-from mark@maxrnd.com) Date: Sat, 17 Aug 2019 18:10:00 -0000 From: Mark Geisert To: cygwin-developers@cygwin.com cc: Takashi Yano Subject: Re: [PATCH v7 1/1] Cygwin: pty: add pseudo console support. In-Reply-To: <20190817083626.GA11632@calimero.vinschen.de> Message-ID: References: <20190815160908.259-1-takashi.yano@nifty.ne.jp> <20190815160908.259-2-takashi.yano@nifty.ne.jp> <20190817083626.GA11632@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00018.txt.bz2 On Sat, 17 Aug 2019, Corinna Vinschen wrote: > Hi Takashi, > On Aug 16 01:09, Takashi Yano wrote: >> - Support pseudo console in PTY. Pseudo console is a new feature >> in Windows 10 1809, which provides console APIs on virtual >> terminal. With this patch, native console applications can work >> in PTY such as mintty, ssh, gnu screen or tmux. >> --- >> winsup/cygwin/dtable.cc | 50 ++ >> winsup/cygwin/fhandler.h | 42 +- >> winsup/cygwin/fhandler_console.cc | 32 + >> winsup/cygwin/fhandler_tty.cc | 843 +++++++++++++++++++++++++- >> winsup/cygwin/fork.cc | 24 + >> winsup/cygwin/select.cc | 22 +- >> winsup/cygwin/spawn.cc | 55 ++ >> winsup/cygwin/strace.cc | 24 + >> winsup/cygwin/tty.cc | 8 + >> winsup/cygwin/tty.h | 24 +- >> winsup/utils/cygwin-console-helper.cc | 14 +- >> 11 files changed, 1093 insertions(+), 45 deletions(-) > > 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. ..mark