>  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

Reply via email to