From owner-freebsd-questions@FreeBSD.ORG Sat Feb 26 04:42:39 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA8E416A4CE for ; Sat, 26 Feb 2005 04:42:39 +0000 (GMT) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A98C43D48 for ; Sat, 26 Feb 2005 04:42:39 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([69.160.65.223]) by mta10.adelphia.netESMTP <20050226044238.HYKV6134.mta10.adelphia.net@default.chvlva.adelphia.net>; Fri, 25 Feb 2005 23:42:38 -0500 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 8F70BB508; Fri, 25 Feb 2005 23:42:48 -0500 (EST) Date: Fri, 25 Feb 2005 23:42:48 -0500 From: Parv To: "Loren M. Lang" Message-ID: <20050226044248.GA2467@holestein.holy.cow> Mail-Followup-To: "Loren M. Lang" , Ramiro Aceves , freebsd-questions-en References: <003801c51b2b$1deecc60$04cf589d@simula.eis.uva.es> <20050225135707.GC18789@alzatex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050225135707.GC18789@alzatex.com> cc: freebsd-questions-en cc: Ramiro Aceves Subject: Re: I killed my system with grep X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: f-q List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Feb 2005 04:42:39 -0000 in message <20050225135707.GC18789@alzatex.com>, wrote Loren M. Lang thusly... > > On Fri, Feb 25, 2005 at 12:14:04PM +0100, Ramiro Aceves wrote: > > > > I am running a FreeBSD 5.3 system with 64MB RAM and 150 MB swap. > > > > Yesterday I entered the command: > > > > # grep -R something / > > You probably hit a file under /dev/ and caused grep to hang. It's > possible that as root, certain device files might hang the system, > but nothing comes to mind at the moment unless /dev/io could do > it. Also, think about what happens when grep hit's /dev/zero. It > will never finish. Would using -I option (not search text-like files) help to avoid above described hang ups in /dev? - Parv --