Re: error in pipe.c?

Petri Kaukasoina (kaukasoi@elektroni.ee.tut.fi)
Fri, 7 Aug 1998 09:13:49 +0300


On Thu, Aug 06, 1998 at 10:51:14AM -0700, Tracy R Reed wrote:
> Actually, it turns out I was running out of system fd's. However, the
> outdated pipe manpage didn't help. The one that came with RH4.2 is from
> kernel 0.99.11!!! I guess I should start looking for a newer set of
> manpages..

The man page is ok and there's a bug in 2.0.35 in reporting ENFILE when
running out of system fds just like pacman@cqc.com told us.

--- linux/fs/pipe.c.orig Thu Aug 7 03:52:01 1997
+++ linux/fs/pipe.c Thu Aug 6 11:53:53 1998
@@ -413,7 +413,7 @@
int error;
int i,j;

- error = ENFILE;
+ error = -ENFILE;
f1 = get_empty_filp();
if (!f1)
goto no_files;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html