[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "less" doesn't work on /proc files

> cat /proc/kcore | less
> works.
> stat()ing the file instead of reading it totally and counting bytes is,
> course, a very high performance gain.

Yes. I'm just saying that if and only if the file reports size 0, try
to read it as if it were a pipe. That should be a very easy change to
make, and should have no impact on the performance.


Pixar: Symbol PIXR on NASDAQ
Visit the "Toy Story" Web Page! http://www.toystory.com

Reply to: