Better handling of interrupted writes.
Merge branch 'blockingIO' of git.fozztexx.com:/usr/local/git/ninepin into blockingIO
Don't immediately close file after writing data.
Use correct length when allocating buffer.