[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.0.98.0705301341480.26602@woody.linux-foundation.org>
Date: Wed, 30 May 2007 13:44:40 -0700 (PDT)
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Eric Dumazet <dada1@...mosbay.com>
cc: Davide Libenzi <davidel@...ilserver.org>,
Ingo Molnar <mingo@...e.hu>,
Ulrich Drepper <drepper@...hat.com>,
Jeff Garzik <jeff@...zik.org>,
Zach Brown <zach.brown@...cle.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Arjan van de Ven <arjan@...radead.org>,
Christoph Hellwig <hch@...radead.org>,
Andrew Morton <akpm@....com.au>,
Alan Cox <alan@...rguk.ukuu.org.uk>,
Evgeniy Polyakov <johnpol@....mipt.ru>,
"David S. Miller" <davem@...emloft.net>,
Suparna Bhattacharya <suparna@...ibm.com>,
Jens Axboe <jens.axboe@...cle.com>,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: Syslets, Threadlets, generic AIO support, v6
On Wed, 30 May 2007, Eric Dumazet wrote:
> >
> > No, Davide, the problem is that some applications depend on getting
> > _specific_ file descriptors.
>
> Fix the application, and not adding kernel bloat ?
No. The application is _correct_. It's how file descriptors are defined to
work.
> Then you can also exclude multi-threading, since a thread (even not inside
> glibc) can also use socket()/pipe()/open()/whatever and take the zero file
> descriptor as well.
Totally different. That's an application internal issue. It does *not*
mean that we can break existing standards.
> The only hardcoded thing in Unix is 0, 1 and 2 fds.
Wrong. I already gave an example of real code that just didn't bother to
keep track of which fd's it had open, and closed them all. Partly, in
fact, because you can't even _know_ which fd's you have open when somebody
else just execve's you.
You can call it buggy, but the fact is, if you do, you're SIMPLY WRONG.
You cannot just change years and years of coding practice, and standard
documentations. The behaviour of file descriptors is a fact. Ignoring that
fact because you don't like it is naïve and simply not realistic.
Linus
Powered by blists - more mailing lists