Skip to content

Fix posix_cond_timedwait return value#1060

Open
Algafix wants to merge 1 commit intoNuand:masterfrom
Algafix:bladerfcli-fix-txrx-wait
Open

Fix posix_cond_timedwait return value#1060
Algafix wants to merge 1 commit intoNuand:masterfrom
Algafix:bladerfcli-fix-txrx-wait

Conversation

@Algafix
Copy link
Copy Markdown

@Algafix Algafix commented Mar 13, 2026

When using the bladeRF-cli I saw that the tx/rx wait Xs command was not returning.

After further inspection, I believe it is because posix_cond_timedwait() is returning -1 instead of ETIMEDOUT.

In the bladeRF-cli code, the comparison is done with THREAD_TIMEOUT, which is mapped to ETIMEDOUT.

At a quick look, I have not seen any part of the codebase where the comparison is with -1 instead of THREAD_TIMEOUT or similar. I might be wrong, then the change should be in the bladeRF-cli code to compare with -1.

#1025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant