Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759159AbYFBKwg (ORCPT ); Mon, 2 Jun 2008 06:52:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752822AbYFBKw1 (ORCPT ); Mon, 2 Jun 2008 06:52:27 -0400 Received: from mx1.redhat.com ([66.187.233.31]:39002 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751233AbYFBKw0 (ORCPT ); Mon, 2 Jun 2008 06:52:26 -0400 Date: Mon, 2 Jun 2008 06:52:10 -0400 From: Alan Cox To: Vegard Nossum Cc: Alan Cox , David Newall , Willy Tarreau , Harald Dunkel , Joe Peterson , linux-kernel@vger.kernel.org, Alan Cox Subject: Re: 2.6.25.3: su gets stuck for root Message-ID: <20080602105210.GH18697@devserv.devel.redhat.com> References: <48434D57.6030801@skyrush.com> <48438126.3080308@t-online.de> <20080602053256.GF5609@1wt.eu> <20080602091016.571dda7c@core> <4843B6EE.8080104@davidnewall.com> <20080602102033.63e4cd18@core> <19f34abd0806020316v4135935dxff04bcf663ebd4bf@mail.gmail.com> <19f34abd0806020339m100fd3f8m6c0c6ff0c08a66d2@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19f34abd0806020339m100fd3f8m6c0c6ff0c08a66d2@mail.gmail.com> User-Agent: Mutt/1.4.1i Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 650 Lines: 13 On Mon, Jun 02, 2008 at 12:39:29PM +0200, Vegard Nossum wrote: > Shouldn't it be EINTR to allow the signal to be processed and let the > process decide whether to retry the tcsetattr()? The signal is processed, and then application retries the tcsetattr and gets another one. The default TTOU behaviour is to block and then fg continues the call so RESTARTSYS is both correct and has been used for years -- 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/