samtools/samtools — pull request #255 by godotgildor (2014-07-22 16:48:58+00:00)
Title: We found that samtools sort would not error on disk full

but would instead continue to write to essentially empty files. I slightly
modified the bam_sort code to check for errorcodes in the filepointer
object which are set when flushes fail. Multi-core sort will
now fail properly if the disk is full and files can not be written to.