[core] Fix _timerfd_check using wrong syscall to detect timer expiration. Add unit-tests. (#3129)

`timerfd_gettime()` returns the time remaining until the next periodic tick,
regardless of how many previous ticks have already fired and remain unread.
Replace with `poll()` which correctly checks for pending unread expirations.
This commit is contained in:
Dmitry Verenitsin
2026-08-21 17:10:14 +03:00
committed by GitHub
parent 80ad6b3206
commit cc93a683ca
4 changed files with 129 additions and 10 deletions
+1
View File
@@ -9,6 +9,7 @@ noinst_PROGRAMS+= switch_hold switch_sip
noinst_PROGRAMS += switch_core_media
noinst_PROGRAMS += test_mod_verto
noinst_PROGRAMS += test_mod_event_socket
noinst_PROGRAMS += switch_timer
if HAVE_PCAP
noinst_PROGRAMS += switch_rtp_pcap