[gst-devel] Registry writing troubles

David Schleef ds at schleef.org
Sun Mar 5 13:45:43 CET 2006


On Fri, Mar 03, 2006 at 05:07:01PM +0100, Michael Smith wrote:
> So, the correct way to deal with 1) is obvious: check write return
> values. Dealing with 2) is also obvious: don't use a fixed filename for
> temporary registry files. However, this means that if we crash while
> writing the registry (which isn't entirely impossible - it touches many
> data structures, etc., some of which might be invalid in some ways), we
> leave temporary files around. So we want to reduce the chances of that
> as far as possible.

Makes sense.

I wouldn't worry about leaving temporary files around, since it only
happens in a combination of an uncommon case (writing the cache) and
an "impossible" case (invalid data structures).  But it doesn't really
matter much, so your method is fine.



dave...

-- 
David Schleef
Big Kitten LLC (http://www.bigkitten.com/) -- data acquisition on Linux




More information about the gstreamer-devel mailing list