> 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
- swap files David Monniaux
- Re: swap files Adrian Likins
- Re: swap files Marco Lamberto
- Re: swap files Marc Lehmann
- Re: swap files Tor Lillqvist
- Re: swap files David Monniaux
- Re: swap files Marc Lehmann
- Re: swap files Jay Cox
- Re: swap files Eric Brunet
- Re: swap files Federico Mena Quintero
- Re: swap files Nick Lamb
- Re: swap files Federico Mena Quintero
- Re: swap files Marc Lehmann
- Re: swap files Raphael Quinet
- Re: swap files Marc Lehmann
- Re: swap files Julian Assange
- Re: swap files Nick Lamb
- Re: swap files Manish Singh
- Re: swap files Sven Neumann
- Re: swap files Marc Lehmann
