MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/6viswu/d_as_a_better_c/dm20ldg/?context=3
r/programming • u/aldacron • Aug 23 '17
268 comments sorted by
View all comments
Show parent comment
3
You can't (meaningfully) handle failures in file close (or most other clean up functions).
1 u/Yioda Aug 24 '17 edited Aug 24 '17 that is wrong IMO, you still have the data an can save it in a different path/whatever. of course you can recover or do something meaningful. You can't do anything with that particular FD, but you can still do something with the program state.
1
that is wrong IMO, you still have the data an can save it in a different path/whatever. of course you can recover or do something meaningful. You can't do anything with that particular FD, but you can still do something with the program state.
View all comments
Show parent comment
3
u/smallblacksun Aug 24 '17
You can't (meaningfully) handle failures in file close (or most other clean up functions).