Skip to content
Snippets Groups Projects
Commit 0d0a5568 authored by Lorenz Meier's avatar Lorenz Meier
Browse files

Fix usage of errno in POSIX semaphore error handling

Previous commit 98ae0186 changed the err variable to errno, which is not the return value we are looking for.
parent 5b2661e0
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ int px4_sem_timedwait(px4_sem_t *s, const struct timespec *abstime)
int err = ret;
if (err != 0 && errno != ETIMEDOUT) {
if (err != 0 && err != ETIMEDOUT) {
setbuf(stdout, nullptr);
setbuf(stderr, nullptr);
const unsigned NAMELEN = 32;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment