🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: dc.org.linux-users
Article #3774

Re: Updatedb error on find

#3774
From: Przemek Klosowski
Date: Wed, 02 Aug 1995 00:00
32 lines
1620 bytes
In article <3vl6kn$is2@explorer.csc.com> sallen@csc.com (Steven Allen) writes:

	   Does anybody know why I keep getting the following error
   when cron runs updatedb?   

	   Find: /proc/self/fd/4  No such file or directory

The /proc filesystem is a neat way of accessing kernel and process information.
In particular, the /proc/self tree gives information about the current process
resources; /proc/self/fd lists file descriptors used by the process. What happens
here is 'updatedb' has descriptor 4 open when it collects the filesystem information,
and it gets closed by the time find runs. 

I suppose updatedb should bypass /proc filesystem, as it is not a real
disk-based filesystem. This can be done by modifying this line in 'updatedb'

test -z "$PRUNEREGEX" &&
  PRUNEREGEX='\(^/tmp$\)\|\(^/usr/tmp$\)\|\(^/var/tmp$\)'

to say 

test -z "$PRUNEREGEX" &&
  PRUNEREGEX='\(^/tmp$\)\|\(^/usr/tmp$\)\|\(^/var/tmp$\)\|\(^/proc$\)'

or perhaps /proc/self rather than /proc.
--
			przemek klosowski (przemek@rrdstrad.nist.gov)
			Reactor Division (bldg. 235), E111
			National Institute of Standards and Technology
			Gaithersburg, MD 20899,      USA

			(301) 975 6249
Technical Details
Message-ID: <PRZEMEK.95Aug2112831@rrdjazz.nist.gov>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3vl6kn$is2@explorer.csc.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11663c,6050ad645b443701
X-Google-Attributes: gid11663c,public
From: przemek@rrdjazz.nist.gov (Przemek Klosowski)
Subject: Re: Updatedb error on find
Date: 1995/08/02
Message-ID: <PRZEMEK.95Aug2112831@rrdjazz.nist.gov>
X-Deja-AN: 107490151
references: <3vl6kn$is2@explorer.csc.com>
organization: U. of Maryland/NIST
newsgroups: dc.org.linux-users