From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpout2.vodafonemail.de (smtpout2.vodafonemail.de [145.253.239.133]) by sourceware.org (Postfix) with ESMTPS id 7FA8D389683A for ; Sat, 5 Jun 2021 05:33:33 +0000 (GMT) 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 Received: from smtp.vodafone.de (smtpa08.fra-mediabeam.com [10.2.0.39]) by smtpout2.vodafonemail.de (Postfix) with ESMTP id A17F5121519 for ; Sat, 5 Jun 2021 07:33:31 +0200 (CEST) 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= Received: from Otto (p54a0c8c7.dip0.t-ipconnect.de [84.160.200.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4519C14016F for ; Sat, 5 Jun 2021 05:33:30 +0000 (UTC) From: ASSI To: cygwin@cygwin.com Subject: Re: [Bug] tmux 3.2-0 References: <87mtsx6six.fsf@Rainer.invalid> <87pmxe1rmk.fsf_-_@Rainer.invalid> <871r9thlw0.fsf@Otto.invalid> <877djebwhi.fsf@Rainer.invalid> Date: Sat, 05 Jun 2021 07:33:27 +0200 In-Reply-To: (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 Content-Type: text/plain 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2021 05:33:44 -0000 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