Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759431AbXE3Vbq (ORCPT ); Wed, 30 May 2007 17:31:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753731AbXE3Vbi (ORCPT ); Wed, 30 May 2007 17:31:38 -0400 Received: from x35.xmailserver.org ([64.71.152.41]:4383 "EHLO x35.xmailserver.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755765AbXE3Vbh (ORCPT ); Wed, 30 May 2007 17:31:37 -0400 X-AuthUser: davidel@xmailserver.org Date: Wed, 30 May 2007 14:31:35 -0700 (PDT) From: Davide Libenzi X-X-Sender: davide@alien.or.mcafeemobile.com To: Eric Dumazet cc: Linus Torvalds , Ingo Molnar , Ulrich Drepper , Jeff Garzik , Zach Brown , Linux Kernel Mailing List , Arjan van de Ven , Christoph Hellwig , Andrew Morton , Alan Cox , Evgeniy Polyakov , "David S. Miller" , Suparna Bhattacharya , Jens Axboe , Thomas Gleixner Subject: Re: Syslets, Threadlets, generic AIO support, v6 In-Reply-To: <465DDF0A.8080107@cosmosbay.com> Message-ID: References: <20070529212718.GH7875@mami.zabbo.net> <465CA654.5000505@garzik.org> <20070530072055.GA3077@elte.hu> <465D286E.2080807@redhat.com> <20070530084252.GA15708@elte.hu> <465DDF0A.8080107@cosmosbay.com> X-GPG-FINGRPRINT: CFAE 5BEE FD36 F65E E640 56FE 0974 BF23 270F 474E X-GPG-PUBLIC_KEY: http://www.xmailserver.org/davidel.asc MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 739 Lines: 25 On Wed, 30 May 2007, Eric Dumazet wrote: > > So library routines *must not* open file descriptors in the normal space. > > > > (The same is true of real applications doing the equivalent of > > > > for (i = 0; i < NR_OPEN; i++) > > close(i); > > Quite buggy IMHO Looking at it now, I'd agree (although I think I have that somewhere in my old code too). Consider though, that such code is contained also in reference books like Richard Stevens "UNIX Network Programming". - Davide - 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/