X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 q=dns; s=default; b=hyZHxGsmEVCHh6kAg+rsoa6b63ozbOMuCUS/dhWXBAY
	l6MTUM5mLXjY0hlIaJwBQNIIKKfwLl7DWjBaxwlFgjDnANcpEAHscI5Nlsv2ogrT
	nS2Jdsc++aJVvamWzc7iDnvLcXwHEZPF5+YPKYML6GrsmDxBMwYIwrRTBrAYkcvI
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 s=default; bh=RQhwJR614+hkGMoZCRYSSOwK8eU=; b=Rx8IZPgSSqeNlaUO3
	KA4OWIq3BI47KvvH/Uak1kes3EH3FKR6f13FFocgUagC1IHOjCmRnkQNFVASwIdY
	KtGUAqbpc876C0ss1OIWus9vYvUpCp+Hy6rN7xTIRdAZ3StAFvHN/3n6XfQzO2Ua
	++eaGfTM8lWeEay59w3pvFuJJk=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
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
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 13:18:14 +0900
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.3
Message-Id: <20190831131814.2f6c9969a4380a457e61d91b@nifty.ne.jp>
In-Reply-To: <CALK-3mKnHy5tGzi4kkf7CZ4m-6x1fGwBsk=bc8Jv1KFoU_reHA@mail.gmail.com>
References: <announce.20190829122237.GZ11632@calimero.vinschen.de>	<CALK-3mLPXAcjZdftE_L-YwneyM79GBEt8c1nyVTisjKp0abCUg@mail.gmail.com>	<20190830075523.GB27273@calimero.vinschen.de>	<20190831032003.d19fb7060c632bb51777c0de@nifty.ne.jp>	<CALK-3mKnHy5tGzi4kkf7CZ4m-6x1fGwBsk=bc8Jv1KFoU_reHA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On Sat, 31 Aug 2019 02:51:34 +0530
Biswapriyo Nath wrote:
> On Friday, August 30, 2019, Takashi Yano <takashi.yano@nifty.ne.jp> 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 <takashi.yano@nifty.ne.jp>

--
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

