Re: Quasi-(un)deletion question
> /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:
tim@truffula:/tmp$ echo This is a test > t.txt
tim@truffula:/tmp$ tail -f t.txt > /dev/null &
[1] 15538
tim@truffula:/tmp$ ln -s t.txt t.txt-symlink
tim@truffula:/tmp$ rm t.txt
tim@truffula:/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
Reply to: