samtools/samtools — pull request #253 by godotgildor (2014-07-21 22:36:21+00:00)
Title: Samtools sort multi-threaded does not error properly when disk writes fail.

We found that when a disk was full, samtools sort using multi-cores
would not error out as expected, but instead continue leading to
temp files of size 0. This commit checks return code of writes
in this portion of the code and will error if writes are not
successful.