Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752627AbZGYUMS (ORCPT ); Sat, 25 Jul 2009 16:12:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752562AbZGYUMR (ORCPT ); Sat, 25 Jul 2009 16:12:17 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:55298 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752540AbZGYUMR (ORCPT ); Sat, 25 Jul 2009 16:12:17 -0400 From: "Rafael J. Wysocki" To: Alan Cox Subject: Re: [Regression] kdesu broken Date: Sat, 25 Jul 2009 22:12:48 +0200 User-Agent: KMail/1.11.2 (Linux/2.6.31-rc4-rjw; KDE/4.2.4; x86_64; ; ) Cc: OGAWA Hirofumi , Linus Torvalds , Ray Lee , LKML , Andrew Morton References: <200907240145.31935.rjw@sisk.pl> <87ws5xjo2x.fsf@devron.myhome.or.jp> <20090725150510.35e8854d@lxorguk.ukuu.org.uk> In-Reply-To: <20090725150510.35e8854d@lxorguk.ukuu.org.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907252212.49045.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1038 Lines: 29 On Saturday 25 July 2009, Alan Cox wrote: > Actually try this: > > > commit b0e6bdde87725a5d46273ecc4bd00c54bd675848 > Author: Alan Cox > Date: Sat Jul 25 15:00:04 2009 +0100 > > pty: ensure writes hit the reader before close > > This is elegant in all the wrong ways. Put the pty into low latency mode (which > we can do as we always post bytes from user context). The tty_flip_buffer_push > then always calls into the ldisc which means we clear the ldisc buffer before > we set the TTY_OTHER_CLOSED flag. > > Means pty has subtle knowledge of tty internals we really don't want it to, but > it fixes the problem for the moment. > > Signed-off-by: Alan Cox Works for me, thanks! Best, Rafael -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/