Re: quasi-[OT] Adobe Flash

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

 



On Thu, 2010-10-21 at 21:33 -0600, Petrus de Calguarium wrote:
> Takehiko Abe wrote:
> 
> > The new flash player (preview 2) unlinks a temp file right after
> > opening it as discussed in this reddit thread:
> > 
> > 
> http://www.reddit.com/r/linux/comments/dky73/flashplugin_not_caching_to_tmp_any
> more/c10ylu5
> > 
> 
> Finally, someone who gets it :-)
> 
> That is what I was saying all along. Yes, the file is deleted, presumably at 
> the instant it is created, so it, in effect, never exists.

To be pedantic, the file is unlinked (i.e. its name in the filesystem
disappears). It's only deleted when it's closed, which is the whole
point.

> Fortunately, Suvayu's brilliant script gets around that and manages to access 
> the file, even though it is already deleted, while Patrick's suggestion of hard 
> linking to it does not work, because it is already deleted, unless he also has 
> some ingenious trick up his sleeve to "get a handle on" the deleted file.

Yes, it's a neat trick. However the 'cp' will terminate when it reaches
the end of the input file, even if it's still being written to by the
flash process. That would explain why the output is sometimes truncated.
Getting round that would need a copy process that waits to see if
there's more output, either by polling or by using inotify. IOW
something conceptually similar to "tail -f".

poc

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


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

  Powered by Linux