Re: more fun with procfs (netfilter)

Alexander Viro (viro@math.psu.edu)
Mon, 19 Nov 2001 02:17:59 -0500 (EST)


> BTW, from strace output in cpuinfo bug report SuSE bash does reads by 128
> bytes. Which means that while read i; do echo $i; done </proc/net/ip_conntrack
> will come out empty (lots of lines are longer than 160 characters).

PS: with bash-2.03:
$ while read i; do echo $i; done < /proc/ip_tables_names
$ while read i; do echo $i; done < /proc/ip_conntrack
$
'cause this beast reads byte-by-byte...

-
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/