Thread (3 messages) 3 messages, 3 authors, 2012-07-23

Re: st_size of a symlink

From: Sam Varshavchik <hidden>
Date: 2012-07-23 21:53:45

Possibly related (same subject, not in this thread)

Jesper Juhl writes:
Let's see what procfs reports:
  [root@arch ~]# ls -l /proc/$$/exe
  lrwxrwxrwx 1 root root 0 Jul 23 19:58 /proc/884/exe -> /bin/bash
Doesn't seem quite right....
That's because it looks like a symlink, it feels like a symlink, but it's  
not really a symlink.
So, from my point of view it looks like procfs is the one who has got it
wrong.
We should probably fix that (IMVHO).
If you remove a running process's executable, that "symlink" will now read  
"$filename (deleted)".

Surprisingly, you will be able to open(2) this alleged "symlink".

Attachments

  • (unnamed) [application/pgp-signature] 198 bytes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help