On Oct 5, 2005, at 1:14 AM, anoop aryal wrote:
unless that's changed in 2.6, the file did change on you even when
you had it
open in 2.4. i wrote a program once that did an
open();
while(1) {
read();
seek(0);
sleep(5);
}
to collect data from /proc and it worked just fine.
Hi Anoop,
the thing I am not sure about is the
while () {
read();
}
What happens if DURING your reads, the kernel updates the proc
filesystem...
Andrew