Re: swap files

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

 



>  If we unlink the swap file after opening it then we have no way of knowing how
>  much space gimp is using for it's swap file.

lseek() returns the offset to which you seeked, so lseek (swap_fd, 0,
SEEK_END) will give you its size.

>  I think unlinking the swap files in the signal handler that is called when we
>  crash would solve this problem.  The cases where this will not work should be
>  rare enough not to worry about.

We should not crash :-)

  Federico


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux