This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Issues with find in /proc


Hi All,

I'm not sure if this is expected behaviour or not, but I've noticed
the following:

csutclif@EUSH000065 /proc
$ find .
.
./loadavg
./meminfo
./registry
find: `./registry': Bad file descriptor
./stat
./version
./uptime
./cpuinfo
./partitions
./self
./mounts
./registry32
find: `./registry32': Bad file descriptor
./registry64
find: `./registry64': Bad file descriptor
./net
./5732
./5732/ppid
./5732/winpid
./5732/winexename
./5732/status
./5732/uid
./5732/gid
./5732/pgid
./5732/sid
./5732/ctty
./5732/stat
./5732/statm
./5732/cmdline
./5732/maps
./5732/fd
./5732/fd/3
./5732/exename
./5732/root
./5732/exe
./5732/cwd
./5732/mounts
./4460
./4460/ppid
./4460/winpid
./4460/winexename
./4460/status
./4460/uid
./4460/gid
./4460/pgid
./4460/sid
./4460/ctty
./4460/stat
./4460/statm
./4460/cmdline
./4460/maps
./4460/fd
./4460/fd/0
./4460/fd/1
./4460/fd/2
./4460/fd/255
./4460/exename
./4460/root
./4460/exe
./4460/cwd
./4460/mounts
./4080
./4080/ppid
./4080/winpid
./4080/winexename
./4080/status
./4080/uid
./4080/gid
./4080/pgid
./4080/sid
./4080/ctty
./4080/stat
./4080/statm
./4080/cmdline
./4080/maps
./4080/fd
./4080/fd/0
./4080/fd/1
./4080/fd/2
./4080/fd/3
./4080/fd/4
./4080/fd/5
assertion "ent->fts_info == FTS_NSOK || state.type != 0" failed: file
"/usr/src/findutils-4.5.4-1/src/findutils-4.5.4/find/ftsfind.c", line
475, function: consider_visiting
Aborted (core dumped)

Of particular interest to me is the fact that the registry*
directories respond with "Bad file descriptor" because I was trying to
use find to locate a subkey based on a string pattern.

I assume the core dump at the end shouldn't occur as well?

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]