From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86735 invoked by alias); 31 Aug 2019 04:18:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 86728 invoked by uid 89); 31 Aug 2019 04:18:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.3 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 spammy=oh, HDKIM-Filter:v2.10.3, HX-Spam-Relays-External:Sendmail, H*RU:Sendmail X-HELO: conssluserg-03.nifty.com Received: from conssluserg-03.nifty.com (HELO conssluserg-03.nifty.com) (210.131.2.82) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 31 Aug 2019 04:18:18 +0000 Received: from Express5800-S70 (ntsitm268057.sitm.nt.ngn.ppp.infoweb.ne.jp [125.1.110.57]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x7V4I7iP024925 for ; Sat, 31 Aug 2019 13:18:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x7V4I7iP024925 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1567225088; bh=1B3U9i2cFAgNRIO79d6vLUKRAUa5gjf1Ast68UKaE6U=; h=Date:From:To:Subject:In-Reply-To:References:From; b=OAyndpLIzEuQqhSUMGDu7rUxHtKq5udOnXnYpsZs2jXKQNvh/2CV+O+cOstwy8bPY v8m7d4s8GxkWJVff/PXwKBftu9MU8lmqVmbCEcLywpD3hhyvuLHnKydo7UZ0Izb4hX smMQtfLowE8TyoI5Ektlc7y+lQqFhNfrNndit0wGf/6uFfGo2Xz6IwV05HaaE6tG1Q C/oOIyDtcwDA1oCxKjinnzFX/8IGMKi73wDd/gEhDf67wh1JIn7yxcs2YFUZ5aPsXm hjIET+acGiZm+ujZiffzl2KarJGBYZ1mj34TunXguFHCXK9FA/T3TlWtL4e2f8EJyI e2/cfekzSreyw== Date: Sat, 31 Aug 2019 04:21:00 -0000 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.3 Message-Id: <20190831131814.2f6c9969a4380a457e61d91b@nifty.ne.jp> In-Reply-To: References: <20190830075523.GB27273@calimero.vinschen.de> <20190831032003.d19fb7060c632bb51777c0de@nifty.ne.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00438.txt.bz2 On Sat, 31 Aug 2019 02:51:34 +0530 Biswapriyo Nath wrote: > On Friday, August 30, 2019, Takashi Yano wrote: > The HPCON isn't a handle. It's a pointer of a struct of three handles. In > my opinion, I think it's consistent with pty functions in libc. Like in > forkpty(2) the pid is returned in master side, here HPCON is same. Then, is it possible to DuplicateHanlde() for three handles in HPCON to other process which calls ioctl() with new HPCON? > Q: From which process do you want to access it? Just a posibility. Some programs may open pty in a process, call fork(), exit the process and call ioctl in the fork'ed process. > To know more about the ConPTY internals here are two of my sample program: > > * XConPty: https://github.com/Biswa96/XConPty > * wslbridge2: https://github.com/Biswa96/wslbridge2/tree/master/rawpty Oh! Is that your work? I already know XConPty site and I wondered what is this and how the auther knows such internal things. -- Takashi Yano -- 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