X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.8 required=5.0	tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,TW_RX,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20100530060043.GC3251@trixie.casa.cgf.cx>
References: <4BF1B307.20507@ntlworld.com>	<AANLkTinQuDlPPsrL51C-fAhQRegeXxr7suIny2Hfc1d7@mail.gmail.com>	<20100530060043.GC3251@trixie.casa.cgf.cx>
Date: Mon, 12 Jul 2010 09:06:14 +0100
Message-ID: <AANLkTik3iqrreNkbhx-_KklTXqnVKj2BLUCO-E-fVI4K@mail.gmail.com>
Subject: Re: 1.7.5 cannot bg mintty
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On 30 May 2010 07:00, Christopher Faylor wrote:
> On Sat, May 29, 2010 at 11:32:23PM +0100, Andy Koppe wrote:
>>There's also another issue with the ^Z not taking effect immediately
>>due to signal handling being disabled while mintty waits for Windows
>>events, but that would require some fairly major restructuring to fix,
>>so leaving that for later.

Fixed in mintty 0.8-beta1, now available from mintty.googlecode.com.

>> Looking at rxvt, the right thing to do is a
>>select() on the pty device and /dev/windows instead of mintty's
>>current approach using multiple threads and
>>MsgWaitForMultipleObjects.)
>
> ...assuming that still works. =C2=A0I wonder if anyone has used that
> interface in the last few years.
>
> But, then, I dunno. =C2=A0Maybe rxvt uses it.

Yep, rxvt does use /dev/windows; I double-checked via /proc/<id>/fd.
XWin uses it too. It allowed getting rid of quite a bit of complexity
in mintty's I/O handling code.

Andy

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

