From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261513AbVFMLSL (ORCPT ); Mon, 13 Jun 2005 07:18:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261514AbVFMLSL (ORCPT ); Mon, 13 Jun 2005 07:18:11 -0400 Received: from clock-tower.bc.nu ([81.2.110.250]:5848 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S261513AbVFMLSH (ORCPT ); Mon, 13 Jun 2005 07:18:07 -0400 Subject: Re: Add pselect, ppoll system calls. From: Alan Cox To: Linus Torvalds Cc: David Woodhouse , Linux Kernel Mailing List , akpm@osdl.org, drepper@redhat.com In-Reply-To: References: <1118444314.4823.81.camel@localhost.localdomain> <1118616499.9949.103.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1118661326.9949.127.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Mon, 13 Jun 2005 12:15:27 +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Llu, 2005-06-13 at 01:26, Linus Torvalds wrote: > On Sun, 12 Jun 2005, Alan Cox wrote: > > > > If glibc has a race why not just fix glibc ? > > .. because glibc tries to implement the "pselect()" interfaces that some > other OS's implement. > > Whether that is a good idea or not (it's not) is a different issue, but > basically it means that apps don't use the longjmp trick exactly because > they think pselect() works ok. Right but why can't glibc be fixed to use the longjmp trick internally. That way pselect works properly for all applications as soon as the glibc bug fix is applied and the vendor/distro/whatever pushes a new glibc package ? Alan