delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/31/00:19:13

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT 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 DOT 20190829122237 DOT GZ11632 AT calimero DOT vinschen DOT de> <CALK-3mLPXAcjZdftE_L-YwneyM79GBEt8c1nyVTisjKp0abCUg AT mail DOT gmail DOT com> <20190830075523 DOT GB27273 AT calimero DOT vinschen DOT de> <20190831032003 DOT d19fb7060c632bb51777c0de AT nifty DOT ne DOT jp> <CALK-3mKnHy5tGzi4kkf7CZ4m-6x1fGwBsk=bc8Jv1KFoU_reHA AT mail DOT gmail DOT com>
Mime-Version: 1.0
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019