[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grep crashes machine

In article <cistron.NEBBLNPDIMNCGABLPAGKMEBFCHAA.pernegger@chello.at>,
Christian Pernegger <pernegger@chello.at> 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.

Reply to: