Skip to content

Commit a214ddb

Browse files
Noemie Gilletnashif
Noemie Gillet
authored andcommitted
posix: fix one-time timer for SIGEV_SIGNAL
For SIGEV_SIGNAL, the function zephyr_timer_wrapper() is the handler between kernel and posix layer. Here, for one-time timer, reload is equal to 0 and function returns. As a consequence, handler function was never called. Signed-off-by: Noemie Gillet <[email protected]>
1 parent 3778444 commit a214ddb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/posix/options/timer.c

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ static void zephyr_timer_wrapper(struct k_timer *ztimer)
4343
if (timer->reload == 0U) {
4444
timer->status = NOT_ACTIVE;
4545
LOG_DBG("timer %p not active", timer);
46-
return;
4746
}
4847

4948
if (timer->evp.sigev_notify == SIGEV_NONE) {

0 commit comments

Comments
 (0)