Re: grep crashes machine
In article <cistron.NEBBLNPDIMNCGABLPAGKMEBFCHAA.firstname.lastname@example.org>,
Christian Pernegger <email@example.com> wrote:
>I just stumbled upon the following. If I do
># cd /
># grep -r * stuff
>it outputs files for maybe half a second then hangs the whole machine. The
>last matches were under /dev. I can't remember grep ever scanning device
>files, but maybe it's just me...
Well, if grep opens /dev/port, /dev/mem and /dev/kmem it is mucking
around in your system memory and doing lots of direct i/o to your
hardware, so it's not really strange that that hangs the machine ..
Just Don't Do That ...
Cistron Certified Internetwork Expert #1.