nowsecure / fsmon

monitor filesystem on iOS / OS X / Android / FirefoxOS / Linux

Home Page:https://www.nowsecure.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Completion of error handling

elfring opened this issue · comments

Would you like to add more error handling for return values from functions like the following?

sure, will do before 1.2 release

i'm not using signal anymore. sigaction works better. no return value checks yet. will update the code later

checked return values for alarm and sigaction

handling return values for all printf/fprintf calls will mess too much the code and i think the benefits for this are low, so i'm moving this issue to 1.3 for now.

I suggest to avoid ignorance of return values a bit more.

Are you interested to apply aspect-oriented software development?
How do you think about to encapsulate error detection and corresponding exception handling as a reusable aspect in your software?

let's close this for now, we'll see if there's any other missing return value that is not checked properly