[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-man
Subject: Re: =?UTF-8?Q?st=5Fsize?= of a symlink
From: Sam Varshavchik <mrsam () courier-mta ! com>
Date: 2012-07-23 21:53:45
Message-ID: cone.1343080425.420260.24471.1000 () monster ! email-scan ! com
[Download RAW message or body]
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".
[Attachment #3 (application/pgp-signature)]
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic