[darcs-users] darcs.cgi -- bug report / complaint

David Roundy droundy at abridgegame.org
Sat Oct 16 17:03:19 UTC 2004


On Wed, Oct 13, 2004 at 02:57:29PM -0300, zooko at zooko.com wrote:
> 
> When darcs.cgi runs out of disk space in its tempfile it aborts and it
> doesn't clean up the tempfile, so my temp dir gets full of those.
> 
> I know Perl doesn't have proper exception handlers, but I guess you could
> use an exit handler or some such to clean up tempfiles?  Or maybe just
> create the tempfile then immediately unlink it and use the anonymous fd?

I've switched to just using an anonymous fd, which seems to fix this
tempfile leak.  It seems that it wasn't just leaking temporary files when
the disk ran out, but rather all the time! Somehow the unlink0 call was
never actually deleting the files.  :(
-- 
David Roundy
http://www.abridgegame.org




More information about the darcs-users mailing list