[Tilesathome] One Windows delete dir bug less!!
Maarten Deen
mdeen at xs4all.nl
Sat Aug 30 21:34:14 BST 2008
spaetz wrote:
> There is only one thing that comes to my mind that *could* be suspect. Try
> this:
>
> in lib/Tileset.pm we create the tempory Job dir as tempdir around line 40:
>
> $self->{JobDir} = tempdir( sprintf("%d_%d_%d_XXXXX",$self->{req}->ZXY), DIR
> => $Config->get('WorkingDirectory'), CLEANUP => $delTmpDir, );
>
> We try to delete the JobDir in the destructor of "Tileset", the function
> cleanup() in that file.
>
> The parameter CLEANUP in tempdir means that it should delete the directory if
> the programs exists. This happens in addition to the regular cleanup() delete
> (so we are double safe in really deleting it on exit). It might be that it
> keeps an handle on that directory open from the creation of the tempdir and
> therefore the rmtree in cleanup() fails.
>
> Try to set CLEANUP => 0 in line 42 and generate a tileset, do you still get
> the errors? If yes, it should be safe to commit this change.
That does change anything.
Maarten
More information about the Tilesathome
mailing list