Do not ignore write() return value.
Do not ignore write() return value.

Some distros set the warn_unused_result attribute for the write()
system call, so check the return value.

gonzoleeman/open-isns,gonzoleeman/open-isns,gonzoleeman/open-isns