FIXUP - general cleanup
FIXUP - EINTR
FIXUP - fsync