[LTP] openposix: timers/twoevtimers: Wait for both timer signals
linuxtestproject.agent@gmail.com
linuxtestproject.agent@gmail.com
Mon Oct 12 09:19:41 CEST 2026
Hi Jan,
On 12 October 2026, Jan Stancek wrote:
> openposix: timers/twoevtimers: Wait for both timer signals
> + while (!(caughtalarm && caughtabort)) {
> + if (nanosleep(&left, &left) == 0)
> + break;
Low severity, twoevtimers.c:113-114: if the last timer signal is handled
after the condition check but before nanosleep(), the one-shot timers
cannot wake that sleep. The test then waits out the remaining budget
(up to three seconds), even though both signals have arrived, rather than
completing in about 50 ms. Block both signals before arming the timers and
use pselect() with an atomic unblocking mask and a deadline-based timeout,
or consume the blocked signals with sigtimedwait().
Verdict - Needs revision
Compilation and runtime validation could not be completed: the generated
test Makefile is absent, and direct compiler execution was denied.
---
Note:
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
More information about the ltp
mailing list