Skip to content

Fix silent timer hangs on Linux#5151

Merged
SeanTAllen merged 1 commit intomainfrom
fix-unchecked-timerfd-returns
Apr 7, 2026
Merged

Fix silent timer hangs on Linux#5151
SeanTAllen merged 1 commit intomainfrom
fix-unchecked-timerfd-returns

Conversation

@SeanTAllen
Copy link
Copy Markdown
Member

timerfd_create and timerfd_settime return values were unchecked in the epoll ASIO backend. If either call failed, the timer silently never fired and the actor waited forever for a notification that never came.

Now checks both return values and sends ASIO_ERROR to the actor on failure, matching the existing pattern for epoll_ctl failures in the same file.

timerfd_create and timerfd_settime return values were unchecked in the
epoll ASIO backend. If either call failed, the timer silently never
fired and the actor waited forever.

Check both return values and send ASIO_ERROR to the actor on failure,
matching the existing pattern for epoll_ctl failures.

Closes #5129
@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Apr 7, 2026
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Apr 7, 2026
@SeanTAllen SeanTAllen merged commit 0f6d38f into main Apr 7, 2026
19 checks passed
@SeanTAllen SeanTAllen deleted the fix-unchecked-timerfd-returns branch April 7, 2026 03:25
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Apr 7, 2026
github-actions bot pushed a commit that referenced this pull request Apr 7, 2026
github-actions bot pushed a commit that referenced this pull request Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants