> /proc/PID/fd seems to work just fine; see transcript below.

OMG. That does work. I didn't try it because the file looks like a symlink
in 'ls' -- a similar process with symlinks on a normal filesystem will
produce different results:

[EMAIL PROTECTED]:/tmp$ echo This is a test > t.txt
[EMAIL PROTECTED]:/tmp$ tail -f t.txt > /dev/null &
[1] 15538
[EMAIL PROTECTED]:/tmp$ ln -s t.txt t.txt-symlink
[EMAIL PROTECTED]:/tmp$ rm t.txt
[EMAIL PROTECTED]:/tmp$ cat t.txt-symlink
cat: t.txt-symlink: No such file or directory

So the proc filesystem somehow provides hardlink semantics with a symlink
facade?

Thanks.

- Tim


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to