mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Fix usage of errno in POSIX semaphore error handling
Previous commit 98ae0186e9 changed the err variable to errno, which is not the return value we are looking for.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user