Just a simple and obvious fix. temp_buf_dump does a write to a file
without check the return value, so if a signal comes, or for some other
reason the whole file isn't written, then the routine erroneously
returns without finishing the write. I added code to check the return
value of write and do the right thing. I attached a patch against trunk
to the bug report.
Another in my attempt to get my feet wet and figure out the tree by
Gimp-developer mailing list