lkml.org 
[lkml]   [2002]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Small oddity of the week: 2.4.20-pre
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:30    [W:1.027 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site