Re: Pausing POE::Wheel::FollowTail?

Jordan Coleman <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
n Oct 7, 2008, at 12:06 PM, Votava, Craig M (Craig) wrote:

> When FollowTail is suspended, no buffering takes place. The current
> location in the current file is preserved and if FollowTail is resumed
> before any reset occurs, things proceed from that point. Otherwise the
> output resumes from the beginning of the currently active file  
> (possibly
> providing an indication of skipped data?).

On thing to note here with that strategy:  Say you have a log file  
that you're following and you pause your app.  While your app is  
paused, the original log is rotated out, a new log file is started and  
the original log file is compressed to save disk space.  When that  
happens, your app still has a handle open to the original file, so  
even though its contents have been copied into a compressed archive  
file and the original file's been unlinked, the disk space the  
original file uses isn't freed until your app lets go of the handle.

This may or may not be an issue for your app, but it's something to  
consider.

++J
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.