thomasmoelhave / tpie

Templated Portable I/O Environment
Other
112 stars 24 forks source link

Throw when closing a file results in an error. #224

Closed freekvw closed 7 years ago

freekvw commented 7 years ago

According to the close(2) man page, close() may return -1 in case, for example, buffers can't be written to disk. I think this should be handled the same as when write() returns -1.

tyilo commented 7 years ago

This breaks around half of our unit tests

tyilo commented 7 years ago

Should be fixed now

freekvw commented 7 years ago

Thanks for fixing it up! For some reason the unit tests didn't fail on my machine...