[Lazarus] Cannot read symbolic link /proc/PID/exe: No such file or directory
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Tue Dec 23 15:28:51 CET 2008
> ls -l /proc/12415/exe
>
> ls: cannot read symbolic link /proc/13415/exe: No such file or
> directory
> lrwxrwxrwx 1 roland roland 0 2008-12-23 00:20 /proc/13415/exe
>
>
> Why does it behave this way?
Are you root?
$ ls -l /proc/1/exe
ls: cannot read symbolic link /proc/1/exe: Permission denied
lrwxrwxrwx 1 root root 0 2008-12-23 07:30 /proc/1/exe
# ls -l /proc/1/exe
lrwxrwxrwx 1 root root 0 2008-12-23 07:30 /proc/1/exe -> /sbin/init
You'll probably find that it will work if the process you are trying to
look at is owned by yourself or if you are root. I think that what the
error message is telling you is that it can see the symlink but can't
follow it.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list