X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7FA8D389683A
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=nexgo.de
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nexgo.de
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexgo.de;
 s=vfde-smtpout-mb-15sep; t=1622871211;
 bh=X4heWtVQB14+ojYi4JVJhRYkyClRzo/I5vMXEvMZbiE=;
 h=From:To:Subject:References:Date:In-Reply-To;
 b=KcrbEt6g0DYVOFbfM5LiK/PFlfm+d2ZmX5oLF5v8uUd/qOvCPgseLrFebVTN2e05P
 sh6oMQEzR3ssWaLUi9rENJN88bD0FJ/V/Rf2BEnfnYwPNlC8bF0rpVsx6Cs+RL8C/q
 KNCMHWbY9She4K9FTPQtmAuNhzjbK+Ljgvv8ZGSg=
From: ASSI <Stromeko@nexgo.de>
To: cygwin@cygwin.com
Subject: Re: [Bug] tmux 3.2-0
References: <announce.CAALQ5rm2xisVPE8WqJOWVxs4o9Qr0Cpcnqx=VybTeyFD005kxA@mail.gmail.com>
 <87mtsx6six.fsf@Rainer.invalid> <87pmxe1rmk.fsf_-_@Rainer.invalid>
 <CAALQ5r=xF_y9cgMn2gRWR4tmvK4TQN-NHYSVx1CepW8NVp=yHg@mail.gmail.com>
 <871r9thlw0.fsf@Otto.invalid>
 <CAALQ5r=Zx3krUx_qw-c8-_4aEsEtS63kahCZo1GzfwXpDz2B0w@mail.gmail.com>
 <877djebwhi.fsf@Rainer.invalid>
 <CAALQ5r=kZ=bJV9S7fMzNH+SSQQXwKAfvxyd17gMY_TW3Jo3tAQ@mail.gmail.com>
 <CAALQ5r=3ih5kp_QQK8OPm-qE835yU88RJ2DsmTutembLUgTEZg@mail.gmail.com>
Date: Sat, 05 Jun 2021 07:33:27 +0200
In-Reply-To: <CAALQ5r=3ih5kp_QQK8OPm-qE835yU88RJ2DsmTutembLUgTEZg@mail.gmail.com>
 (Michael Wild via Cygwin's message of "Wed, 2 Jun 2021 19:38:48
 +0200")
Message-ID: <87lf7og9js.fsf@Otto.invalid>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
X-purgate-type: clean
X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de
X-purgate: This mail is considered clean (visit http://www.eleven.de for
 further information)
X-purgate: clean
X-purgate-size: 1293
X-purgate-ID: 155817::1622871211-000006F1-51942956/0/0
X-Spam-Status: No, score=-3032.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW,
 RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

Michael Wild via Cygwin writes:
> I just uploaded a patched test version 3.2-1 (yeah, I know, I'm off by
> one with the release number...). Can you give it a go and see whether
> the mosh test suite runs through with it?

No it doesn't and I don't even understand why anybody thinks that would
fix the issue.  The output is supposed to go to stdout (that's the sole
purpose of control mode) and it's the fd for the TTY that gets
duplicated there apparently (why that only exists for Cygwin if I'm
reading it correctly is another mystery).  So indeed the output now appears on the
terminal, but that's not where it should go when stdout gets redirected
elsewhere.

It _might_ be possible for this particular case that one could open
/proc/${clientpid}/fd/1 and have it do the right thing.  If so, then the
call just above that clobbers stdin with the ttyname would probably be
better off as /proc/${clientpid}/fd/0.

Otherwise with the code changes as implemented you'd need to wait for
the AF_UNIX branch by Ken Brown to finally land before tmux works as
intended again.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
