Conversation

Yeah, it makes sense to wrap close, check for that and abort the program. Not much point in checking for other close errors though. You generally have to design around using fsync if you need things to be reliable and the fsync is where you actually need to handle the errors.
1
2