Closed jibel closed 4 years ago
errno is not reset in libc calls and there is no guarantee that errno is zero on success. Rework error handling so both errno and the return value are considered to decide whether it is an error or an expected result. Fixes #1
Co-authored-by: Didier Roche didrocks@ubuntu.com
errno is not reset in libc calls and there is no guarantee that errno is zero on success. Rework error handling so both errno and the return value are considered to decide whether it is an error or an expected result. Fixes #1
Co-authored-by: Didier Roche didrocks@ubuntu.com