Re: [OT] Hardlinks and directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2010-02-13 at 05:20 +0000, g wrote:
> Patrick O'Callaghan wrote:
> 
> > cat > foo &
> > rm foo
> > lsof +L1 -s
> > 
> > When I do this the "cat" process shows up (and foo is marked as
> > deleted). You can then reconnect to "cat" (using fg) and write stuff
> > into the "non-existent" file.
> 
> 'cat > foo &', will create a file 'foo' in directory and in background,
> therefore it is still open as a buffered file, so it can not be truly
> considered as 'not-existent' other than in directory.

You're overinterpreting a casual term. I used "non-existent" only to
mean that the file has no name and hence cannot be accessed by another
process ('pace' the /proc tricks already mentioned).

poc

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux