Re: Small oddity of the week: 2.4.20-pre

Alan Cox (alan@lxorguk.ukuu.org.uk)
22 Oct 2002 11:20:41 +0100


On Sat, 2002-10-12 at 15:00, Alastair Stevens wrote:
> I consulted the developer, and we tracked the problem down to this
> pathetically innocent command sequence in the script:
>
> fdisk -l | grep -w "/dev/hda6"
>
> For some reason, this now produces, entirely at _random_, either one or
> two lines of output! It was the duplicated output that broke Mindi. It's
> easily accommodated in the script, but this randomness was never
> exhibited on any earlier kernels. Is it me, or is this weird?

It would be weird but for having known people who hit the same. The file
can change as its being read (especially with stats in it). You may find
that you need to do a single large read of the /proc file

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